Khaotic Engine Reborn
|
Classes | |
struct | Face |
struct | ModelType |
struct | Normal |
struct | TempVertexType |
struct | Texture |
struct | VectorType |
struct | Vertex |
struct | VertexType |
Public Member Functions | |
model_class (const model_class &)=delete | |
model_class & | operator= (const model_class &)=delete |
bool | Initialize (ID3D11Device *, ID3D11DeviceContext *, char *, const TextureContainer &) |
bool | Initialize (ID3D11Device *, ID3D11DeviceContext *, char *) |
void | Shutdown () |
void | Render (ID3D11DeviceContext *) |
int | GetIndexCount () |
int | GetVertexCount () const |
ID3D11ShaderResourceView * | GetTexture (TextureType type, int index) const |
bool | ChangeTexture (ID3D11Device *device, ID3D11DeviceContext *deviceContext, std::wstring filename, TextureType type, int index) |
bool | AddTexture (ID3D11Device *device, ID3D11DeviceContext *deviceContext, std::wstring filename, TextureType type) |
bool | AddTexture (ID3D11ShaderResourceView *texture, TextureType type) |
void | SetTextureContainer (TextureContainer &texturesContainer) |
TextureContainer | GetTextureContainer () const |
bool | PreloadTextures (ID3D11Device *device, ID3D11DeviceContext *deviceContext, TextureContainer &textureContainer) |
Protected Attributes | |
int | m_vertexCount |
int | m_indexCount |
ID3D11Buffer * | m_vertexBuffer |
ID3D11Buffer * | m_indexBuffer |
Definition at line 150 of file model_class.h.
model_class::model_class | ( | ) |
Definition at line 4 of file model_class.cpp.
model_class::~model_class | ( | ) |
Definition at line 21 of file model_class.cpp.
bool model_class::AddTexture | ( | ID3D11Device * | device, |
ID3D11DeviceContext * | deviceContext, | ||
std::wstring | filename, | ||
TextureType | type ) |
Definition at line 646 of file model_class.cpp.
bool model_class::AddTexture | ( | ID3D11ShaderResourceView * | texture, |
TextureType | type ) |
Definition at line 683 of file model_class.cpp.
bool model_class::ChangeTexture | ( | ID3D11Device * | device, |
ID3D11DeviceContext * | deviceContext, | ||
std::wstring | filename, | ||
TextureType | type, | ||
int | index ) |
Definition at line 585 of file model_class.cpp.
int model_class::GetIndexCount | ( | ) |
Definition at line 88 of file model_class.cpp.
ID3D11ShaderResourceView * model_class::GetTexture | ( | TextureType | type, |
int | index ) const |
Definition at line 93 of file model_class.cpp.
|
inline |
Definition at line 232 of file model_class.h.
|
inline |
Definition at line 217 of file model_class.h.
bool model_class::Initialize | ( | ID3D11Device * | device, |
ID3D11DeviceContext * | deviceContext, | ||
char * | modelFilename ) |
Definition at line 40 of file model_class.cpp.
bool model_class::Initialize | ( | ID3D11Device * | device, |
ID3D11DeviceContext * | deviceContext, | ||
char * | modelFilename, | ||
const TextureContainer & | textures ) |
Definition at line 28 of file model_class.cpp.
bool model_class::PreloadTextures | ( | ID3D11Device * | device, |
ID3D11DeviceContext * | deviceContext, | ||
TextureContainer & | textureContainer ) |
Definition at line 526 of file model_class.cpp.
void model_class::Render | ( | ID3D11DeviceContext * | deviceContext | ) |
Definition at line 79 of file model_class.cpp.
|
inline |
Definition at line 231 of file model_class.h.
void model_class::Shutdown | ( | ) |
Definition at line 64 of file model_class.cpp.
|
protected |
Definition at line 238 of file model_class.h.
|
protected |
Definition at line 237 of file model_class.h.
|
protected |
Definition at line 238 of file model_class.h.
|
protected |
Definition at line 237 of file model_class.h.