mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2025-02-26 16:44:00 -05:00
Fixed warnings.
This commit is contained in:
parent
58c0d54f59
commit
fd35b10df6
2 changed files with 505 additions and 506 deletions
|
@ -163,6 +163,7 @@ namespace bgfx
|
||||||
|
|
||||||
switch (type)
|
switch (type)
|
||||||
{
|
{
|
||||||
|
default:
|
||||||
case AttribType::Uint8:
|
case AttribType::Uint8:
|
||||||
{
|
{
|
||||||
uint8_t* packed = (uint8_t*)data;
|
uint8_t* packed = (uint8_t*)data;
|
||||||
|
@ -279,6 +280,7 @@ namespace bgfx
|
||||||
|
|
||||||
switch (type)
|
switch (type)
|
||||||
{
|
{
|
||||||
|
default:
|
||||||
case AttribType::Uint8:
|
case AttribType::Uint8:
|
||||||
{
|
{
|
||||||
uint8_t* packed = (uint8_t*)data;
|
uint8_t* packed = (uint8_t*)data;
|
||||||
|
|
|
@ -750,9 +750,6 @@ int main(int _argc, const char* _argv[])
|
||||||
|
|
||||||
uint32_t positionOffset = decl.getOffset(bgfx::Attrib::Position);
|
uint32_t positionOffset = decl.getOffset(bgfx::Attrib::Position);
|
||||||
uint32_t color0Offset = decl.getOffset(bgfx::Attrib::Color0);
|
uint32_t color0Offset = decl.getOffset(bgfx::Attrib::Color0);
|
||||||
uint32_t normalOffset = decl.getOffset(bgfx::Attrib::Normal);
|
|
||||||
uint32_t tangentOffset = decl.getOffset(bgfx::Attrib::Tangent);
|
|
||||||
uint32_t texcoord0Offset = decl.getOffset(bgfx::Attrib::TexCoord0);
|
|
||||||
|
|
||||||
uint32_t ii = 0;
|
uint32_t ii = 0;
|
||||||
for (GroupArray::const_iterator groupIt = groups.begin(); groupIt != groups.end(); ++groupIt, ++ii)
|
for (GroupArray::const_iterator groupIt = groups.begin(); groupIt != groups.end(); ++groupIt, ++ii)
|
||||||
|
@ -883,7 +880,7 @@ int main(int _argc, const char* _argv[])
|
||||||
write(&writer, vertexData, numVertices, decl, indexData, numIndices, material, primitives);
|
write(&writer, vertexData, numVertices, decl, indexData, numIndices, material, primitives);
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("size: %d\n", writer.seek() );
|
printf("size: %d\n", uint32_t(writer.seek() ) );
|
||||||
writer.close();
|
writer.close();
|
||||||
|
|
||||||
delete [] indexData;
|
delete [] indexData;
|
||||||
|
@ -897,7 +894,7 @@ int main(int _argc, const char* _argv[])
|
||||||
, double(triReorderElapsed)/bx::getHPFrequency()
|
, double(triReorderElapsed)/bx::getHPFrequency()
|
||||||
, double(convertElapsed)/bx::getHPFrequency()
|
, double(convertElapsed)/bx::getHPFrequency()
|
||||||
, num
|
, num
|
||||||
, groups.size()
|
, uint32_t(groups.size() )
|
||||||
, numPrimitives
|
, numPrimitives
|
||||||
, numVertices
|
, numVertices
|
||||||
, numIndices
|
, numIndices
|
||||||
|
|
Loading…
Reference in a new issue