MCPcopy Create free account
hub / github.com/bumptop/BumpTop / SetTexture

Method SetTexture

trunk/win/Source/BT_Mesh.cpp:69–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69void Mesh::SetTexture(unsigned int index, IDirect3DTexture9 * texture)
70{
71 _ASSERT(index < _meshMaterialCount);
72 SAFE_RELEASE(_meshTextures[index]);
73 _meshTextures[index] = texture;
74 texture->AddRef();
75}
76
77void Mesh::Render(const Vec3 &position, const Mat33 &orientation, const Vec3 &halfDimensions)
78{

Callers 13

RenderMethod · 0.80
renderCursorMethod · 0.80
onRenderMethod · 0.80
renderDesktopMethod · 0.80
renderVertexBufferMethod · 0.80
RenderCallbackFunction · 0.80
Key_TestFunction · 0.80
bindAsGLTextureMethod · 0.80
drawVolumeBoundaryMethod · 0.80
drawClustersMethod · 0.80
drawDebugClustersMethod · 0.80

Calls 1

AddRefMethod · 0.45

Tested by

no test coverage detected