Fixed warnings.

This commit is contained in:
bkaradzic 2012-12-28 17:20:28 -08:00
parent 1bc2ec8015
commit c2eda31fca
3 changed files with 163 additions and 163 deletions

View file

@ -99,7 +99,7 @@ namespace Forsyth
} }
const uint kMaxVertexCacheSize = 64; const int kMaxVertexCacheSize = 64;
const uint kMaxPrecomputedVertexValenceScores = 64; const uint kMaxPrecomputedVertexValenceScores = 64;
float s_vertexCacheScores[kMaxVertexCacheSize+1][kMaxVertexCacheSize]; float s_vertexCacheScores[kMaxVertexCacheSize+1][kMaxVertexCacheSize];
float s_vertexValenceScores[kMaxPrecomputedVertexValenceScores]; float s_vertexValenceScores[kMaxPrecomputedVertexValenceScores];

View file

@ -117,7 +117,7 @@ Updating shader uniforms.
![example-03-raymarch](https://github.com/bkaradzic/bgfx/raw/master/examples/03-raymarch/screenshot.png) ![example-03-raymarch](https://github.com/bkaradzic/bgfx/raw/master/examples/03-raymarch/screenshot.png)
### 04-mesh ### 04-mesh
Loading OpenCTM meshes. Loading meshes.
![example-04-mesh](https://github.com/bkaradzic/bgfx/raw/master/examples/04-mesh/screenshot.png) ![example-04-mesh](https://github.com/bkaradzic/bgfx/raw/master/examples/04-mesh/screenshot.png)

View file

@ -12,6 +12,8 @@
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <string>
#include <vector> #include <vector>
void fatalCb(bgfx::Fatal::Enum _code, const char* _str) void fatalCb(bgfx::Fatal::Enum _code, const char* _str)
@ -142,7 +144,7 @@ struct Group
struct Mesh struct Mesh
{ {
void Mesh::load(const char* _filePath) void load(const char* _filePath)
{ {
#define BGFX_CHUNK_MAGIC_VB BX_MAKEFOURCC('V', 'B', ' ', 0x0) #define BGFX_CHUNK_MAGIC_VB BX_MAKEFOURCC('V', 'B', ' ', 0x0)
#define BGFX_CHUNK_MAGIC_IB BX_MAKEFOURCC('I', 'B', ' ', 0x0) #define BGFX_CHUNK_MAGIC_IB BX_MAKEFOURCC('I', 'B', ' ', 0x0)
@ -195,8 +197,6 @@ struct Mesh
material.resize(len); material.resize(len);
bx::read(&reader, const_cast<char*>(material.c_str() ), len); bx::read(&reader, const_cast<char*>(material.c_str() ), len);
uint32_t type = m_decl.has(bgfx::Attrib::TexCoord0) ? 0 : 1;
uint16_t num; uint16_t num;
bx::read(&reader, num); bx::read(&reader, num);
@ -234,7 +234,7 @@ struct Mesh
reader.close(); reader.close();
} }
void Mesh::unload() void unload()
{ {
for (GroupArray::const_iterator it = m_groups.begin(), itEnd = m_groups.end(); it != itEnd; ++it) for (GroupArray::const_iterator it = m_groups.begin(), itEnd = m_groups.end(); it != itEnd; ++it)
{ {