OpenClonk
C4Draw.h File Reference
Include dependency graph for C4Draw.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  C4Pattern
 
struct  C4BltVertex
 
struct  ZoomData
 
class  C4Draw
 
struct  ZoomDataStackItem
 

Functions

void DwTo4UB (DWORD dwClr, unsigned char(&r)[4])
 
bool DDrawInit (C4AbstractApp *pApp, unsigned int iXRes, unsigned int iYRes, unsigned int iMonitor)
 

Variables

C4DrawpDraw
 

Class Documentation

◆ C4BltVertex

struct C4BltVertex

Definition at line 60 of file C4Draw.h.

Class Members
unsigned char color[4]
float ftx
float fty
float ftz
float tx
float ty

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:

◆ DwTo4UB()

void DwTo4UB ( DWORD  dwClr,
unsigned char(&)  r[4] 
)
inline

Definition at line 29 of file C4Draw.h.

30 {
31  r[0] = (unsigned char)( (dwClr >> 16) & 0xff);
32  r[1] = (unsigned char)( (dwClr >> 8) & 0xff);
33  r[2] = (unsigned char)( (dwClr ) & 0xff);
34  r[3] = (unsigned char)( (dwClr >> 24) & 0xff);
35 }

Referenced by C4Draw::Blit8Fast(), C4Draw::BlitSurfaceTile(), C4Draw::BlitUnscaled(), C4PXSSystem::Draw(), C4Draw::DrawCircleDw(), C4Draw::DrawFrameDw(), C4Object::DrawLine(), C4Draw::DrawLineDw(), C4Draw::DrawPix(), and C4Draw::DrawQuadDw().

Here is the caller graph for this function:

Variable Documentation

◆ pDraw

C4Draw* pDraw
extern

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().