19 #ifndef SAMPLEINTERFACES_H
20 #define SAMPLEINTERFACES_H
35 static const int MAX_MESSAGES = 1000;
36 const char* m_messages[MAX_MESSAGES];
38 static const int TEXT_POOL_SIZE = 8000;
39 char m_textPool[TEXT_POOL_SIZE];
46 void dumpLog(
const char* format, ...);
69 virtual void texture(
bool state);
71 virtual void vertex(
const float* pos,
unsigned int color);
72 virtual void vertex(
const float x,
const float y,
const float z,
unsigned int color);
73 virtual void vertex(
const float* pos,
unsigned int color,
const float* uv);
74 virtual void vertex(
const float x,
const float y,
const float z,
unsigned int color,
const float u,
const float v);
90 virtual bool write(
const void* ptr,
const size_t size);
91 virtual bool read(
void* ptr,
const size_t size);
duDebugDrawPrimitives
Definition: DebugDraw.h:26
__int64 TimeVal
Definition: PerfTimer.h:26
rcTimerLabel
Recast performance timer categories.
Definition: Recast.h:40
@ RC_MAX_TIMERS
The maximum number of timers. (Used for iterating timers.)
Definition: Recast.h:98
rcLogCategory
Recast log categories.
Definition: Recast.h:31
Recast build context.
Definition: SampleInterfaces.h:31
BuildContext()
Definition: SampleInterfaces.cpp:18
virtual void doStopTimer(const rcTimerLabel label)
Stops the specified performance timer.
Definition: SampleInterfaces.cpp:67
virtual void doResetLog()
Virtual functions for custom implementations.
Definition: SampleInterfaces.cpp:28
virtual void doResetTimers()
Clears all timers. (Resets all to unused.)
Definition: SampleInterfaces.cpp:56
int getLogCount() const
Returns number of log messages.
Definition: SampleInterfaces.cpp:127
virtual void doLog(const rcLogCategory category, const char *msg, const int len)
Logs a message.
Definition: SampleInterfaces.cpp:34
virtual void doStartTimer(const rcTimerLabel label)
Starts the specified performance timer.
Definition: SampleInterfaces.cpp:62
void dumpLog(const char *format,...)
Dumps the log to stdout.
Definition: SampleInterfaces.cpp:82
const char * getLogText(const int i) const
Returns log message text.
Definition: SampleInterfaces.cpp:132
virtual int doGetAccumulatedTime(const rcTimerLabel label) const
Returns the total accumulated time of the specified performance timer.
Definition: SampleInterfaces.cpp:77
OpenGL debug draw implementation.
Definition: SampleInterfaces.h:66
virtual void end()
End drawing primitives.
Definition: SampleInterfaces.cpp:254
virtual void vertex(const float *pos, unsigned int color)
Submit a vertex.
Definition: SampleInterfaces.cpp:228
virtual void texture(bool state)
Definition: SampleInterfaces.cpp:194
virtual void begin(duDebugDrawPrimitives prim, float size=1.0f)
Begin drawing primitives.
Definition: SampleInterfaces.cpp:207
virtual void depthMask(bool state)
Definition: SampleInterfaces.cpp:189
stdio file implementation.
Definition: SampleInterfaces.h:80
virtual bool isWriting() const
Definition: SampleInterfaces.cpp:292
virtual bool read(void *ptr, const size_t size)
Definition: SampleInterfaces.cpp:309
bool openForRead(const char *path)
Definition: SampleInterfaces.cpp:283
FileIO()
Definition: SampleInterfaces.cpp:263
virtual bool write(const void *ptr, const size_t size)
Definition: SampleInterfaces.cpp:302
virtual bool isReading() const
Definition: SampleInterfaces.cpp:297
virtual ~FileIO()
Definition: SampleInterfaces.cpp:269
bool openForWrite(const char *path)
Definition: SampleInterfaces.cpp:274
Provides an interface for optional logging and performance tracking of the Recast build process.
Definition: Recast.h:115
Abstract debug draw interface.
Definition: DebugDraw.h:35
Definition: RecastDump.h:23