Rendering debugger interface.
More...
#include <RenderingDebugger.h>
|
| | RenderingDebugger () |
| | Initializes the internal data.
|
| virtual | ~RenderingDebugger () |
| | Release the internal data.
|
| void | SetSource (const char *source) |
| | Sets the new source function name.
|
| void | SetDebugGroup (const char *name) |
| | Sets the new debug group name.
|
| void | SetTimeRecording (bool enabled) |
| | Enables or disables time recording. By default disabled.
|
| bool | GetTimeRecording () const |
| | Returns whether time recording is enabled.
|
| void | SetBreakOnError (bool enable) |
| | Enables or disables the flag to break the debugger when errors are reported. By default disabled.
|
| bool | GetBreakOnError () const |
| | Returns whether the flag to break the debugger when errors are reported is enabled.
|
| void | Errorf (const ErrorType type, const char *format,...) |
| | Posts an error message.
|
| void | Warningf (const WarningType type, const char *format,...) |
| | Posts a warning message.
|
| void | FlushProfile (FrameProfile *outputProfile=nullptr) |
| | Returns the current frame profile and resets the counters for the next frame.
|
| void | RecordProfile (const FrameProfile &profile) |
| | Records the specified profile with the current values.
|
Rendering debugger interface.
◆ RenderingDebugger()
| LLGL::RenderingDebugger::RenderingDebugger |
( |
| ) |
|
Initializes the internal data.
◆ ~RenderingDebugger()
| virtual LLGL::RenderingDebugger::~RenderingDebugger |
( |
| ) |
|
|
virtual |
Release the internal data.
◆ Errorf()
| void LLGL::RenderingDebugger::Errorf |
( |
const ErrorType | type, |
|
|
const char * | format, |
|
|
| ... ) |
Posts an error message.
- Parameters
-
| [in] | type | Specifies the type of error. |
| [in] | format | Specifies the formatted message. Same as ::printf. |
◆ FlushProfile()
| void LLGL::RenderingDebugger::FlushProfile |
( |
FrameProfile * | outputProfile = nullptr | ) |
|
Returns the current frame profile and resets the counters for the next frame.
- Parameters
-
| [out] | outputProfile | Optional pointer to an output profile to retrieve the current values. By default null. |
◆ GetBreakOnError()
| bool LLGL::RenderingDebugger::GetBreakOnError |
( |
| ) |
const |
Returns whether the flag to break the debugger when errors are reported is enabled.
- See also
- SetBreakOnError
◆ GetTimeRecording()
| bool LLGL::RenderingDebugger::GetTimeRecording |
( |
| ) |
const |
◆ MergeProfiles()
Merges the source frame profile src into the destination frame profile dst.
- See also
- FrameProfile
◆ OnError()
| virtual void LLGL::RenderingDebugger::OnError |
( |
ErrorType | type, |
|
|
Message & | message ) |
|
protectedvirtual |
Callback function when an error was posted.
- See also
- RenderingDebugger::PostError
-
OnWarning
◆ OnWarning()
Callback function when a warning was posted.
- See also
- RenderingDebugger::PostWarning
-
OnError
◆ RecordProfile()
| void LLGL::RenderingDebugger::RecordProfile |
( |
const FrameProfile & | profile | ) |
|
Records the specified profile with the current values.
- Parameters
-
| [in] | profile | Specifies the input profile whose values are to be merged with the current values. |
- See also
- MergeProfiles
◆ SetBreakOnError()
| void LLGL::RenderingDebugger::SetBreakOnError |
( |
bool | enable | ) |
|
◆ SetDebugGroup()
| void LLGL::RenderingDebugger::SetDebugGroup |
( |
const char * | name | ) |
|
Sets the new debug group name.
- Parameters
-
| [in] | name | Pointer to a null terminated string that specifies the name. If this is null, the debug group is disabled. |
- Note
- This function only stores the pointer. Hence, the pointer must be valid until a new pointer or a null pointer is set.
◆ SetSource()
| void LLGL::RenderingDebugger::SetSource |
( |
const char * | source | ) |
|
Sets the new source function name.
- Parameters
-
| [in] | source | Pointer to a null terminated string that specifies the name. If this is null, the source is disabled. |
- Note
- This function only stores the pointer. Hence, the pointer must be valid until a new pointer or a null pointer is set.
◆ SetTimeRecording()
| void LLGL::RenderingDebugger::SetTimeRecording |
( |
bool | enabled | ) |
|
◆ Warningf()
| void LLGL::RenderingDebugger::Warningf |
( |
const WarningType | type, |
|
|
const char * | format, |
|
|
| ... ) |
Posts a warning message.
- Parameters
-
| [in] | type | Specifies the type of error. |
| [in] | format | Specifies the formatted message. Same as ::printf. |
The documentation for this class was generated from the following file: