mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-24 16:48:18 -05:00
Cleanup.
This commit is contained in:
parent
983f1e6f9a
commit
cacff49d99
2 changed files with 2 additions and 9 deletions
|
@ -338,7 +338,7 @@ int _main_(int /*_argc*/, char** /*_argv*/)
|
|||
bgfx::destroyFragmentShader(fsh);
|
||||
|
||||
// Load diffuse texture.
|
||||
mem = loadTexture("texture_compression_ptc22.pvr"); //fieldstone-rgba.dds");
|
||||
mem = loadTexture("fieldstone-rgba.dds");
|
||||
bgfx::TextureHandle textureColor = bgfx::createTexture(mem);
|
||||
|
||||
// Load normal texture.
|
||||
|
|
|
@ -233,13 +233,6 @@ int _main_(int /*_argc*/, char** /*_argv*/)
|
|||
, BGFX_TEXTURE_MIN_POINT|BGFX_TEXTURE_MAG_POINT|BGFX_TEXTURE_MIP_POINT
|
||||
);
|
||||
|
||||
updateTextureCubeRectBgra8(textureCube, 0, 0, 0, textureSide, textureSide, 0xff, 0, 0);
|
||||
updateTextureCubeRectBgra8(textureCube, 1, 0, 0, textureSide, textureSide, 0xff, 0, 0);
|
||||
updateTextureCubeRectBgra8(textureCube, 2, 0, 0, textureSide, textureSide, 0xff, 0, 0);
|
||||
updateTextureCubeRectBgra8(textureCube, 3, 0, 0, textureSide, textureSide, 0xff, 0, 0);
|
||||
updateTextureCubeRectBgra8(textureCube, 4, 0, 0, textureSide, textureSide, 0xff, 0, 0);
|
||||
updateTextureCubeRectBgra8(textureCube, 5, 0, 0, textureSide, textureSide, 0xff, 0, 0);
|
||||
|
||||
uint8_t rr = rand()%255;
|
||||
uint8_t gg = rand()%255;
|
||||
uint8_t bb = rand()%255;
|
||||
|
@ -291,7 +284,7 @@ int _main_(int /*_argc*/, char** /*_argv*/)
|
|||
++hit;
|
||||
const Pack2D& rect = face.m_rect;
|
||||
|
||||
updateTextureCubeRectBgra8(textureCube, face.m_side, rect.m_x, rect.m_y, rect.m_width, rect.m_height, 0, 0xff, 0);
|
||||
updateTextureCubeRectBgra8(textureCube, face.m_side, rect.m_x, rect.m_y, rect.m_width, rect.m_height, rr, gg, bb);
|
||||
|
||||
rr = rand()%255;
|
||||
gg = rand()%255;
|
||||
|
|
Loading…
Reference in a new issue