#include <C4DefGraphics.h>
Public Types | |
enum | GraphicsType { TYPE_None , TYPE_Bitmap , TYPE_Mesh } |
Public Member Functions | |
C4AdditionalDefGraphics (C4Def *pOwnDef, const char *szName) | |
const char * | GetName () override |
C4Surface * | GetBitmap (DWORD dwClr=0) |
bool | LoadBitmap (C4Group &hGroup, const char *szFilenamePNG, const char *szOverlayPNG, const char *szNormal, bool fColorByOwner) |
bool | LoadBitmaps (C4Group &hGroup, bool fColorByOwner) |
bool | LoadMesh (C4Group &hGroup, const char *szFilename, StdMeshSkeletonLoader &loader) |
bool | LoadSkeleton (C4Group &hGroup, const char *szFilename, StdMeshSkeletonLoader &loader) |
bool | Load (C4Group &hGroup, StdMeshSkeletonLoader &loader, bool fColorByOwner) |
C4DefGraphics * | Get (const char *szGrpName) |
void | Clear () |
bool | IsMesh () const |
bool | IsColorByOwner () |
void | Draw (C4Facet &cgo, DWORD iColor, C4Object *pObj, int32_t iPhaseX, int32_t iPhaseY, C4DrawTransform *trans) |
C4AdditionalDefGraphics * | GetNext () |
void | DrawClr (C4Facet &cgo, bool fAspect=true, DWORD dwClr=0) |
void | CompileFunc (StdCompiler *pComp) |
Public Attributes | |
C4Def * | pDef |
GraphicsType | Type |
union { | |
struct { | |
C4Surface * | Bitmap |
C4Surface * | BitmapClr |
C4Surface * | BitmapNormal |
} | Bmp |
StdMesh * | Mesh |
}; | |
bool | fColorBitmapAutoCreated |
Protected Member Functions | |
C4DefGraphics * | GetLast () |
Protected Attributes | |
char | Name [C4MaxName+1] |
C4AdditionalDefGraphics * | pNext |
Definition at line 91 of file C4DefGraphics.h.
|
inherited |
C4AdditionalDefGraphics::C4AdditionalDefGraphics | ( | C4Def * | pOwnDef, |
const char * | szName | ||
) |
Definition at line 412 of file C4DefGraphics.cpp.
References C4MaxName, Name, and SCopy().
|
inherited |
Definition at line 74 of file stub-handle.cpp.
Referenced by C4Def::Clear(), C4DefGraphics::LoadBitmap(), and C4DefGraphics::~C4DefGraphics().
|
inherited |
|
inherited |
Definition at line 318 of file C4DefGraphics.cpp.
References C4ValueToMatrix(), C4Object::Color, C4Facet::DrawTUnscaled(), C4Object::FinishedDrawing(), C4DefGraphics::GetBitmap(), C4GraphicsOverlay::GetNext(), C4PropList::GetProperty(), C4Facet::Hgt, C4Rect::Hgt, P_PictureTransformation, C4DefGraphics::pDef, pDraw, C4Object::pGfxOverlay, C4Def::PictureRect, C4Object::PictureRect, C4Object::pMeshInstance, C4Object::PrepareDrawing(), C4Draw::RenderMesh(), C4Facet::Set(), C4Draw::SetMeshTransform(), C4Draw::SetPerspective(), C4Facet::Surface, C4DefGraphics::Type, C4DefGraphics::TYPE_Bitmap, C4DefGraphics::TYPE_Mesh, C4DefGraphics::TYPE_None, C4Facet::Wdt, C4Rect::Wdt, C4Facet::X, C4Rect::x, C4Facet::Y, and C4Rect::y.
Referenced by C4Def::Draw(), C4GraphicsOverlay::Draw(), C4MenuItem::DrawElement(), C4GraphicsOverlay::DrawPicture(), and C4Game::DrawPropListSpecImage().
Definition at line 378 of file C4DefGraphics.cpp.
References C4Facet::DrawClr(), C4Surface::Hgt, C4DefGraphics::Type, C4DefGraphics::TYPE_Bitmap, and C4Surface::Wdt.
|
inherited |
Definition at line 307 of file C4DefGraphics.cpp.
References C4DefGraphics::pNext, and SEqualNoCase().
Referenced by C4DefGraphicsPtrBackupEntry::AssignUpdate(), C4DefGraphicsAdapt::CompileFunc(), C4Def::Draw(), C4Game::DrawPropListSpecImage(), and C4Object::SetGraphics().
Definition at line 1185 of file C4DefGraphics.cpp.
References C4Surface::SetClr(), C4DefGraphics::Type, and C4DefGraphics::TYPE_Bitmap.
Referenced by C4DefGraphics::Draw(), C4SolidMask::Draw(), C4Object::DrawFaceImpl(), C4Def::GetMainFace(), and C4GraphicsOverlay::UpdateFacet().
|
protectedinherited |
Definition at line 53 of file C4DefGraphics.cpp.
References C4DefGraphics::pNext.
|
inlineoverridevirtual |
|
inlineinherited |
|
inlineinherited |
Definition at line 74 of file C4DefGraphics.h.
References C4DefGraphics::Type, C4DefGraphics::TYPE_Bitmap, and C4DefGraphics::TYPE_Mesh.
Referenced by C4Object::UpdateGraphics().
|
inlineinherited |
Definition at line 73 of file C4DefGraphics.h.
References C4DefGraphics::Type, and C4DefGraphics::TYPE_Mesh.
|
inherited |
Definition at line 226 of file C4DefGraphics.cpp.
References _MAX_PATH, _MAX_PATH_LEN, C4CFN_ClrByOwner, C4CFN_ClrByOwnerEx, C4CFN_DefGraphics, C4CFN_DefGraphicsEx, C4CFN_DefGraphicsExMesh, C4CFN_DefGraphicsExMeshXml, C4CFN_DefGraphicsScaled, C4CFN_DefMesh, C4CFN_DefMeshXml, C4CFN_DefSkeleton, C4CFN_DefSkeletonXml, C4CFN_NormalMap, C4CFN_NormalMapEx, C4MaxName, EnforceExtension(), C4Group::FindNextEntry(), GetExtension(), C4DefGraphics::LoadBitmap(), C4DefGraphics::LoadMesh(), C4DefGraphics::LoadSkeleton(), C4DefGraphics::pDef, C4DefGraphics::pNext, RemoveExtension(), C4Group::ResetSearch(), SAppend(), SCharLastPos(), SCharPos(), SCopy(), SEqualNoCase(), and WildcardMatch().
|
inherited |
Definition at line 84 of file C4DefGraphics.cpp.
References C4SF_MipMap, C4DefGraphics::Clear(), DebugLogF(), C4DefGraphics::fColorBitmapAutoCreated, StdStrBuf::getData(), C4Group::GetFullName(), C4DefGraphics::Type, and C4DefGraphics::TYPE_Bitmap.
Referenced by C4DefGraphics::Load().
|
inherited |
|
inherited |
Definition at line 157 of file C4DefGraphics.cpp.
References DebugLogF(), GetExtension(), C4Group::GetName(), C4Def::id, C4Group::LoadEntry(), StdMeshLoader::LoadMeshBinary(), StdMeshLoader::LoadMeshXml(), MeshMaterialManager, C4DefGraphics::pDef, SEqualNoCase(), C4ID::ToString(), C4DefGraphics::Type, and C4DefGraphics::TYPE_Mesh.
Referenced by C4DefGraphics::Load().
|
inherited |
Definition at line 192 of file C4DefGraphics.cpp.
References DebugLogF(), GetExtension(), C4Group::GetName(), C4Group::LoadEntry(), StdMeshSkeletonLoader::LoadSkeletonBinary(), StdMeshSkeletonLoader::LoadSkeletonXml(), StdMeshSkeletonLoader::RemoveSkeleton(), and SEqualNoCase().
Referenced by C4DefGraphics::Load().
union { ... } |
|
inherited |
Definition at line 59 of file C4DefGraphics.h.
Referenced by C4DefGraphics::LoadBitmap().
|
protected |
Definition at line 94 of file C4DefGraphics.h.
Referenced by C4AdditionalDefGraphics(), and GetName().
|
inherited |
Definition at line 34 of file C4DefGraphics.h.
Referenced by C4DefGraphicsPtrBackup::Add(), C4Def::C4Def(), C4DefGraphicsPtrBackupEntry::C4DefGraphicsPtrBackupEntry(), C4DefGraphicsAdapt::CompileFunc(), C4MeshDenumerator::CompileFunc(), C4DefGraphics::Draw(), C4GraphicsOverlay::Draw(), C4DefGraphics::Load(), C4DefGraphics::LoadMesh(), and C4GraphicsOverlay::UpdateFacet().
|
protectedinherited |
Definition at line 37 of file C4DefGraphics.h.
Referenced by C4DefGraphicsPtrBackup::Add(), C4DefGraphics::Get(), C4DefGraphics::GetLast(), C4DefGraphics::GetNext(), and C4DefGraphics::Load().
|
inherited |
Definition at line 48 of file C4DefGraphics.h.
Referenced by C4DefGraphicsPtrBackupEntry::AssignUpdate(), C4DefGraphicsPtrBackupEntry::C4DefGraphicsPtrBackupEntry(), C4Object::CompileFunc(), C4MeshDenumerator::CompileFunc(), C4DefGraphics::Draw(), C4MouseControl::Draw(), C4DefGraphics::DrawClr(), C4Object::DrawFace(), C4DefGraphics::GetBitmap(), C4Game::GetTextSpecImageAspect(), C4Object::Init(), C4DefGraphics::IsColorByOwner(), C4DefGraphics::IsMesh(), C4GraphicsOverlay::IsValid(), C4DefGraphics::LoadBitmap(), C4DefGraphics::LoadMesh(), C4GraphicsOverlay::UpdateFacet(), and C4Object::UpdateGraphics().