![]() |
NDEVR
API Documentation
|
A specific type of Exception that occurs when a GraphicsDevice is lost. More...
Public Member Functions | |
| DeviceLostException (const TranslatedString &error) | |
| Constructs a device-lost exception. | |
| DeviceLostException (const TranslatedString &error, const TranslatedString &category) | |
| Constructs a device-lost exception with a category. | |
| Public Member Functions inherited from GraphicsException | |
| GraphicsException (const TranslatedString &error) | |
| Constructs a graphics exception with an error message. | |
| GraphicsException (const TranslatedString &error, const TranslatedString &category) | |
| Constructs a graphics exception with an error message and category. | |
| void | setMessage (const TranslatedString &message) final override |
| Sets the exception message. | |
| void | setType (GraphicsExceptionType type) |
| Sets the exception type. | |
| GraphicsExceptionType | type () const |
| Returns the exception type. | |
Additional Inherited Members | |
| Public Types inherited from GraphicsException | |
| enum | GraphicsExceptionType { e_general , e_device_lost } |
| Categories of graphics exceptions. More... | |
| Protected Attributes inherited from GraphicsException | |
| GraphicsExceptionType | m_type |
| The type of this graphics exception. | |
A specific type of Exception that occurs when a GraphicsDevice is lost.
This typically requires a complete re-initialization of the NDEVR Graphics Engine.
Definition at line 88 of file GraphicsException.h.
|
explicit |
Constructs a device-lost exception.
| [in] | error | The error description. |
| DeviceLostException::DeviceLostException | ( | const TranslatedString & | error, |
| const TranslatedString & | category ) |
Constructs a device-lost exception with a category.
| [in] | error | The error description. |
| [in] | category | The error category. |