Added 07-callback example.

This commit is contained in:
bkaradzic
2012-12-30 20:52:47 -08:00
parent ff41632999
commit d4cd0ea4fa
32 changed files with 1152 additions and 206 deletions

View File

@@ -13,11 +13,6 @@
#include <stdio.h>
#include <string.h>
void fatalCb(bgfx::Fatal::Enum _code, const char* _str)
{
DBG("%x: %s", _code, _str);
}
struct PosNormalTangentTexcoordVertex
{
float m_x;
@@ -255,7 +250,7 @@ void calcTangents(const uint16_t* _indices, uint32_t _numIndices, Ty* _vertices,
int _main_(int _argc, char** _argv)
{
bgfx::init(fatalCb);
bgfx::init();
bgfx::reset(1280, 720);
// Enable debug text.