OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
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

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

Definition at line 796 of file C4Draw.cpp.

References C4Draw::Init(), and pDraw.

Referenced by C4Application::DoInit().

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

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

C4Draw* pDraw =nullptr

Definition at line 42 of file C4Draw.cpp.

Referenced by C4Surface::BltPix(), C4TexRef::C4TexRef(), C4Application::Clear(), C4Weather::CompileFunc(), C4Surface::Copy(), C4FacetSurface::CopyFromSfcMaxSize(), C4Surface::Create(), C4FoWAmbient::CreateFromLandscape(), DDrawInit(), C4UpperBoard::Draw(), C4TransferZone::Draw(), C4LoaderScreen::Draw(), C4Sky::Draw(), C4PXSSystem::Draw(), C4MessageBoard::Draw(), C4GameMessage::Draw(), C4Landscape::Draw(), C4DefGraphics::Draw(), C4EditCursor::Draw(), C4IDList::Draw(), C4PathFinderRay::Draw(), C4Viewport::Draw(), C4MouseControl::Draw(), C4Facet::Draw(), C4LandscapeRenderGL::Draw(), C4Def::Draw(), C4Object::Draw(), C4GraphicsOverlay::Draw(), C4ScriptGuiWindow::Draw(), C4ParticleList::Draw(), C4GUI::Window::Draw(), C4GUI::FrameDecoration::Draw(), C4GUI::Dialog::Draw(), C4GUI::CMouse::Draw(), C4GUI::Screen::Draw(), C4GUI::Element::Draw3DFrame(), C4GUI::Tabular::Sheet::DrawCaption(), C4ScriptGuiWindow::DrawChildren(), C4Landscape::DrawChunks(), C4Game::DrawCrewOverheadText(), C4StartupMainDlg::DrawElement(), C4ScoreboardDlg::DrawElement(), C4MenuItem::DrawElement(), C4StartupNetListEntry::DrawElement(), C4Chart::DrawElement(), 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(), 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(), C4Weather::SetSeasonGamma(), C4GraphicsSystem::StartDrawing(), C4FoW::~C4FoW(), and C4TexRef::~C4TexRef().