mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2025-03-14 00:49:53 -04:00
Merge branch 'master' of github.com:bkaradzic/bgfx
This commit is contained in:
commit
7da5e874ae
1 changed files with 6 additions and 6 deletions
|
@ -145,9 +145,9 @@ void triangleCompress(bx::WriterI* _writer, uint16_t* _indices, uint32_t _numInd
|
|||
CompressIndexBuffer(_indices, _numIndices/3, vertexRemap, _numVertices, ICBF_AUTO, writer);
|
||||
writer.Finish();
|
||||
printf( "uncompressed: %10d, compressed: %10d, ratio: %0.2f%%\n"
|
||||
, _numIndices * 2
|
||||
, writer.ByteSize()
|
||||
, 100.0f - float( writer.ByteSize() ) / float( _numIndices * 2 )*100.0f
|
||||
, _numIndices*2
|
||||
, (uint32_t)writer.ByteSize()
|
||||
, 100.0f - float(writer.ByteSize() ) / float(_numIndices*2)*100.0f
|
||||
);
|
||||
|
||||
BX_UNUSED(_vertexData, _stride);
|
||||
|
@ -179,7 +179,7 @@ void calcTangents(void* _vertices, uint16_t _numVertices, bgfx::VertexDecl _decl
|
|||
float m_pad1;
|
||||
float m_pad2;
|
||||
};
|
||||
|
||||
|
||||
float* tangents = new float[6*_numVertices];
|
||||
memset(tangents, 0, 6*_numVertices*sizeof(float) );
|
||||
|
||||
|
@ -265,7 +265,7 @@ void calcTangents(void* _vertices, uint16_t _numVertices, bgfx::VertexDecl _decl
|
|||
}
|
||||
|
||||
delete [] tangents;
|
||||
}
|
||||
}
|
||||
|
||||
void write(bx::WriterI* _writer, const void* _vertices, uint32_t _numVertices, uint32_t _stride)
|
||||
{
|
||||
|
@ -446,7 +446,7 @@ int main(int _argc, const char* _argv[])
|
|||
|
||||
uint32_t packUv = 0;
|
||||
cmdLine.hasArg(packUv, '\0', "packuv");
|
||||
|
||||
|
||||
bool ccw = cmdLine.hasArg("ccw");
|
||||
bool flipV = cmdLine.hasArg("flipv");
|
||||
bool hasTangent = cmdLine.hasArg("tangent");
|
||||
|
|
Loading…
Reference in a new issue