mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 18:45:54 -05:00
Fixed warnings.
This commit is contained in:
parent
1bc2ec8015
commit
c2eda31fca
3 changed files with 163 additions and 163 deletions
|
@ -99,7 +99,7 @@ namespace Forsyth
|
|||
}
|
||||
|
||||
|
||||
const uint kMaxVertexCacheSize = 64;
|
||||
const int kMaxVertexCacheSize = 64;
|
||||
const uint kMaxPrecomputedVertexValenceScores = 64;
|
||||
float s_vertexCacheScores[kMaxVertexCacheSize+1][kMaxVertexCacheSize];
|
||||
float s_vertexValenceScores[kMaxPrecomputedVertexValenceScores];
|
||||
|
|
|
@ -117,7 +117,7 @@ Updating shader uniforms.
|
|||
![example-03-raymarch](https://github.com/bkaradzic/bgfx/raw/master/examples/03-raymarch/screenshot.png)
|
||||
|
||||
### 04-mesh
|
||||
Loading OpenCTM meshes.
|
||||
Loading meshes.
|
||||
|
||||
![example-04-mesh](https://github.com/bkaradzic/bgfx/raw/master/examples/04-mesh/screenshot.png)
|
||||
|
||||
|
|
|
@ -12,6 +12,8 @@
|
|||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
void fatalCb(bgfx::Fatal::Enum _code, const char* _str)
|
||||
|
@ -142,7 +144,7 @@ struct Group
|
|||
|
||||
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_IB BX_MAKEFOURCC('I', 'B', ' ', 0x0)
|
||||
|
@ -195,8 +197,6 @@ struct Mesh
|
|||
material.resize(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;
|
||||
bx::read(&reader, num);
|
||||
|
||||
|
@ -234,7 +234,7 @@ struct Mesh
|
|||
reader.close();
|
||||
}
|
||||
|
||||
void Mesh::unload()
|
||||
void unload()
|
||||
{
|
||||
for (GroupArray::const_iterator it = m_groups.begin(), itEnd = m_groups.end(); it != itEnd; ++it)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue