OpenClonk
C4Draw.cpp File Reference
#include "C4Include.h"
#include "C4ForbidLibraryCompilation.h"
#include "graphics/C4Draw.h"
#include "graphics/C4DrawGL.h"
#include "graphics/C4DrawT.h"
#include "graphics/C4FontLoader.h"
#include "graphics/CSurface8.h"
#include "lib/C4Markup.h"
#include "lib/C4Rect.h"
#include "lib/StdColors.h"
#include "lib/StdMesh.h"
#include "platform/C4App.h"
#include "platform/C4Window.h"
Include dependency graph for C4Draw.cpp:

Go to the source code of this file.

Functions

bool DDrawInit (C4AbstractApp *pApp, unsigned int iXRes, unsigned int iYRes, unsigned int iMonitor)
 

Variables

C4DrawpDraw =nullptr
 

Function Documentation

◆ DDrawInit()

bool DDrawInit ( C4AbstractApp pApp,
unsigned int  iXRes,
unsigned int  iYRes,
unsigned int  iMonitor 
)

Definition at line 790 of file C4Draw.cpp.

791 {
792  // create engine
793  #ifndef USE_CONSOLE
794  pDraw = new CStdGL();
795  #else
796  pDraw = new CStdNoGfx();
797  #endif
798  if (!pDraw) return false;
799  // init it
800  if (!pDraw->Init(pApp, iXRes, iYRes, iMonitor))
801  {
802  delete pDraw;
803  return false;
804  }
805  // done, success
806  return true;
807 }
C4Draw * pDraw
Definition: C4Draw.cpp:42
bool Init(C4AbstractApp *pApp, unsigned int iXRes, unsigned int iYRes, unsigned int iMonitor)
Definition: C4Draw.cpp:809

References C4Draw::Init(), and pDraw.

Referenced by C4Application::DoInit().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ pDraw

C4Draw* pDraw =nullptr

Definition at line 42 of file C4Draw.cpp.

Referenced by C4Surface::BltPix(), C4TexRef::C4TexRef(), C4Application::Clear(), C4ViewportList::CloseViewport(), C4Weather::CompileFunc(), C4Surface::Copy(), C4FacetSurface::CopyFromSfcMaxSize(), C4Surface::Create(), C4FoWAmbient::CreateFromLandscape(), DDrawInit(), C4MessageBoard::Draw(), C4UpperBoard::Draw(), C4Def::Draw(), C4DefGraphics::Draw(), C4LoaderScreen::Draw(), C4IDList::Draw(), C4Facet::Draw(), C4EditCursor::Draw(), C4PathFinderRay::Draw(), C4PXSSystem::Draw(), C4Sky::Draw(), C4GUI::Window::Draw(), C4GUI::Dialog::Draw(), C4Viewport::Draw(), C4GUI::Screen::Draw(), C4TransferZone::Draw(), C4GraphicsOverlay::Draw(), C4GUI::FrameDecoration::Draw(), C4Landscape::Draw(), C4MouseControl::Draw(), C4Object::Draw(), C4GameMessage::Draw(), C4ScriptGuiWindow::Draw(), C4GUI::CMouse::Draw(), C4ParticleList::Draw(), C4LandscapeRenderGL::Draw(), C4GUI::Element::Draw3DFrame(), C4GUI::Tabular::Sheet::DrawCaption(), C4ScriptGuiWindow::DrawChildren(), C4Landscape::DrawChunks(), C4Game::DrawCrewOverheadText(), C4GUI::Label::DrawElement(), C4GUI::WoodenLabel::DrawElement(), C4GUI::MultilineLabel::DrawElement(), C4GUI::ProgressBar::DrawElement(), C4GUI::HorizontalLine::DrawElement(), C4GUI::GroupBox::DrawElement(), C4GUI::Button::DrawElement(), C4GUI::IconButton::DrawElement(), C4GUI::ArrowButton::DrawElement(), C4GUI::FacetButton::DrawElement(), C4GUI::Edit::DrawElement(), C4GUI::CheckBox::DrawElement(), C4GUI::ListBox::DrawElement(), C4GUI::Tabular::DrawElement(), C4GUI::TextWindow::DrawElement(), C4GUI::ContextMenu::Entry::DrawElement(), C4GUI::ContextMenu::DrawElement(), C4GUI::ContextButton::DrawElement(), C4GUI::ComboBox::DrawElement(), C4GUI::Dialog::DrawElement(), C4GUI::FullscreenDialog::DrawElement(), C4MenuItem::DrawElement(), C4ScoreboardDlg::DrawElement(), C4StartupMainDlg::DrawElement(), C4StartupNetListEntry::DrawElement(), C4Chart::DrawElement(), C4Facet::DrawEnergyLevelEx(), C4Object::DrawFaceImpl(), C4Menu::DrawFrame(), C4Facet::DrawFullScreen(), C4ViewportList::DrawFullscreenBackground(), C4Object::DrawLine(), C4Viewport::DrawMenu(), C4EditCursor::DrawObject(), C4GraphicsOverlay::DrawPicture(), C4Viewport::DrawPlayerStartup(), C4EditCursor::DrawSelectMark(), C4Network2::DrawStatus(), C4Facet::DrawT(), CStdFont::DrawText(), C4GUI::Screen::DrawToolTip(), C4Object::DrawTopFace(), C4Facet::DrawTUnscaled(), C4Facet::DrawValue(), C4Facet::DrawValue2(), C4Facet::DrawX(), C4Facet::DrawXFloat(), C4Facet::DrawXR(), C4Facet::DrawXT(), C4Viewport::Execute(), C4Object::FinishedDrawing(), C4Surface::GetPixDw(), C4FacetSurface::Grayscale(), C4Sky::Init(), C4MapFolderData::Load(), C4MessageBoard::LogNotify(), C4Landscape::P::MapToSurface(), C4Application::OnResolutionChanged(), C4Surface::PageFlip(), StdMeshMatManager::Parse(), C4Object::PrepareDrawing(), C4FoWRegion::Render(), C4Game::SaveGameTitle(), C4Game::SetDefaultGamma(), C4GraphicsSystem::StartDrawing(), ZoomDataStackItem::ZoomDataStackItem(), C4Draw::~C4Draw(), C4TexRef::~C4TexRef(), and ZoomDataStackItem::~ZoomDataStackItem().