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

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

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:

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

Definition at line 29 of file C4Draw.h.

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

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 }

Here is the caller graph for this function:

Variable Documentation

C4Draw* pDraw

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(), C4MessageBoard::Draw(), C4PXSSystem::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().