![]() |
NDEVR
API Documentation
|
Stores bools to be sent to both the Vertex and Fragment shaders in the Vulkan space. More...
Public Types | |
| enum | ModelProperties { e_3D_selected , e_3D_focussed , e_orient_to_camera , e_follow_camera , e_scale_to_camera } |
| Properties describing the state of a model within the 3D scene. More... | |
| enum class | RenderProperties { e_parity , e_wireframe , e_use_custom_color , e_use_lighting , e_smooth_normals , e_use_texture_model_coord , e_use_linework_model_coord } |
| Properties controlling how geometry is rendered. More... | |
Public Member Functions | |
| VulkanBitflagObject () | |
| Default constructor initializing all flags to zero. | |
| VulkanBitflagObject (const VulkanBitflagObject &object) | |
| Copy constructor. | |
| bool | get (const ModelProperties &property) const |
| Gets the value of a model property flag. | |
| bool | operator!= (const VulkanBitflagObject &object) const |
| Inequality comparison operator. | |
| VulkanBitflagObject & | operator= (const VulkanBitflagObject &object) |
| Copy assignment operator. | |
| bool | operator== (const VulkanBitflagObject &object) const |
| Equality comparison operator. | |
| void | set (const ModelProperties &property, bool value) |
| Sets a model property flag. | |
| void | set (const VertexProperty &property, bool value) |
| Sets a vertex property flag. | |
| void | setExtra (bool value) |
| Sets the extra bit in flag[0] bit 7. | |
| void | setHasImage (uint01 type, bool has_image) |
| Sets whether a specific image type is present. | |
| void | setRenderProperty (RenderProperties property, bool value) |
| Sets a render property flag. | |
Public Attributes | |
| BitFlag | flag [4] |
| Array of four BitFlag values: [0]=vertex, [1]=model, [2]=render, [3]=image. | |
Stores bools to be sent to both the Vertex and Fragment shaders in the Vulkan space.
Definition at line 40 of file VulkanBitflagObject.h.
Properties describing the state of a model within the 3D scene.
Definition at line 45 of file VulkanBitflagObject.h.
|
strong |
Properties controlling how geometry is rendered.
Definition at line 56 of file VulkanBitflagObject.h.
|
inline |
Copy constructor.
| [in] | object | The object to copy from. |
Definition at line 72 of file VulkanBitflagObject.h.
References VulkanBitflagObject(), and flag.
|
inlinenodiscard |
Gets the value of a model property flag.
| [in] | property | The model property to query. |
Definition at line 102 of file VulkanBitflagObject.h.
|
inline |
Inequality comparison operator.
| [in] | object | The object to compare against. |
Definition at line 142 of file VulkanBitflagObject.h.
References VulkanBitflagObject(), and flag.
|
inline |
Copy assignment operator.
| [in] | object | The object to copy from. |
Definition at line 123 of file VulkanBitflagObject.h.
References VulkanBitflagObject(), and flag.
|
inline |
Equality comparison operator.
| [in] | object | The object to compare against. |
Definition at line 132 of file VulkanBitflagObject.h.
References VulkanBitflagObject(), and flag.
|
inline |
Sets a model property flag.
| [in] | property | The model property to set. |
| [in] | value | The boolean value to assign. |
Definition at line 95 of file VulkanBitflagObject.h.
|
inline |
Sets a vertex property flag.
| [in] | property | The vertex property to set. |
| [in] | value | The boolean value to assign. |
Definition at line 82 of file VulkanBitflagObject.h.
|
inline |
Sets the extra bit in flag[0] bit 7.
| [in] | value | The boolean value to assign. |
Definition at line 88 of file VulkanBitflagObject.h.
References flag.
|
inline |
Sets whether a specific image type is present.
| [in] | type | The image type index. |
| [in] | has_image | Whether the image type is present. |
Definition at line 116 of file VulkanBitflagObject.h.
|
inline |
Sets a render property flag.
| [in] | property | The render property to set. |
| [in] | value | The boolean value to assign. |
Definition at line 109 of file VulkanBitflagObject.h.