API Documentation
Loading...
Searching...
No Matches
GLESBufferManager.h
Go to the documentation of this file.
1/*--------------------------------------------------------------------------------------------
2Copyright (c) 2019, NDEVR LLC
3tyler.parke@ndevr.org
4 __ __ ____ _____ __ __ _______
5 | \ | | | __ \ | ___|\ \ / / | __ \
6 | \ | | | | \ \ | |___ \ \ / / | |__) |
7 | . \| | | |__/ / | |___ \ V / | _ /
8 | |\ |_|_____/__|_____|___\_/____| | \ \
9 |__| \__________________________________| \__\
10
11Subject to the terms of the Enterprise+ Agreement, NDEVR hereby grants
12Licensee a limited, non-exclusive, non-transferable, royalty-free license
13(without the right to sublicense) to use the API solely for the purpose of
14Licensee's internal development efforts to develop applications for which
15the API was provided.
16
17The above copyright notice and this permission notice shall be included in all
18copies or substantial portions of the Software.
19
20THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
21INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
22PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
23FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
24OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
25DEALINGS IN THE SOFTWARE.
26
27Library: Graphics
28File: VulkanVertexManager
29Included in API: True
30Author(s): Tyler Parke
31 *-----------------------------------------------------------------------------------------**/
32#pragma once
33#include "GLESGraphicsDevice.h"
35#include "GLBuffer.h"
36
37namespace NDEVR
38{
39 class GraphicsUpdateArguments;
40 /**--------------------------------------------------------------------------------------------------
41 \brief Manages vertex buffers for the OpenGL engine
42 *-----------------------------------------------------------------------------------------------**/
44 {
45 public:
47 GLESVertexManager(const GLESVertexManager& m_pipeline) = delete;
51
53
54 void setScene(const Scene& scene);
55 void commit();
56 void updateExtraBuffer(GraphicsUpdateArguments& args, const String& extra_property);
57 void updateExtraBuffer(GraphicsUpdateArguments& args, const Scene& scene, const String& extra_property);
60 BitFlag vertexFlags() const { return m_vertex_flags; };
64 UUID scene() const { return m_scene; }
65 protected:
69 protected:
81 };
82}
A bitset that stores 8 bits (elements with only two possible values: 0 or 1, true or false,...
Definition BitFlag.hpp:62
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:59
Provides a constant, unmodifiable pointer that has shared ownership of a dynamically allocated object...
Definition GraphicsPipeline.h:42
A hash-based key-value store, useful for quick associative lookups.
Definition Dictionary.h:59
Provides a modifiable pointer that has shared ownership of a dynamically allocated object.
Definition Pointer.hpp:319
Manages vertex buffers for the OpenGL engine.
Definition GLESBufferManager.h:44
DynamicPointer< GraphicsBuffer > m_index_buffer
Definition GLESBufferManager.h:71
void updateBuffer(const Scene &scene, GraphicsUpdateArguments &args)
Definition GLESBufferManager.cpp:20
DynamicPointer< GraphicsBuffer > indexBuffer() const
Definition GLESBufferManager.cpp:332
GLESVertexManager(const GLESVertexManager &m_pipeline)=delete
void updateVertexBuffer(const Scene &scene, GraphicsUpdateArguments &args, VertexProperty property)
Definition GLESBufferManager.cpp:73
ConstPointer< GraphicsBuffer > getRenderBuffer(const Scene &scene, const String &channel) const
Definition GLESBufferManager.cpp:351
void createPipeline(GraphicsUpdateArguments &args)
Definition GLESBufferManager.cpp:343
Time lastDependencyUpdate() const
Definition GLESBufferManager.h:49
void updateExtraBuffer(GraphicsUpdateArguments &args, const String &extra_property)
Definition GLESBufferManager.cpp:208
DynamicPointer< GraphicsBuffer > m_vertex_buffer[cast< uint04 >(VertexProperty::BitFlag)+1]
Definition GLESBufferManager.h:73
Time m_last_push_update_time
Definition GLESBufferManager.h:77
void updateIndexBuffer(const Scene &scene, GraphicsUpdateArguments &args)
Definition GLESBufferManager.cpp:43
BitFlag vertexFlags() const
Definition GLESBufferManager.h:60
bool m_needs_pipeline_update
Definition GLESBufferManager.h:79
DynamicPointer< GLESGraphicsDevice > m_device
Definition GLESBufferManager.h:70
Time m_last_updated_time
Definition GLESBufferManager.h:76
void updateUniformBuffer(GraphicsUpdateArguments &args)
Definition GLESBufferManager.cpp:112
Buffer< DynamicPointer< OpenGLBuffer > > getRenderBuffers(GraphicsUpdateArguments &args, const String &extra_property) const
Definition GLESBufferManager.cpp:283
UUID m_scene
Definition GLESBufferManager.h:75
UUID scene() const
Definition GLESBufferManager.h:64
GLESVertexManager(const DynamicPointer< GLESGraphicsDevice > &device)
Definition GLESBufferManager.cpp:6
BitFlag m_vertex_flags
Definition GLESBufferManager.h:78
bool m_needs_index_buffer_update
Definition GLESBufferManager.h:80
Time lastUpdateTime() const
Definition GLESBufferManager.h:50
DynamicPointer< GraphicsBuffer > m_vertex_flags_buffer
Definition GLESBufferManager.h:72
void commit()
Definition GLESBufferManager.cpp:205
void setScene(const Scene &scene)
Definition GLESBufferManager.cpp:200
uint04 vertexSize() const
Definition GLESBufferManager.h:63
Dictionary< String, DynamicPointer< GraphicsBuffer > > m_extra_properties
Definition GLESBufferManager.h:74
~GLESVertexManager()
Definition GLESBufferManager.cpp:14
Definition GraphicsUpdateArguments.h:40
Definition Model.h:491
The core String class for the software.
Definition String.h:47
Represents a timestamp with utilities for manipulation and conversion.
Definition Time.h:54
A universally unique identifier (UUID) is a 128-bit number used to identify information in computer s...
Definition UUID.h:62
Definition ACIColor.h:37
VertexProperty
Definition DesignObjectBase.h:52
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:115
constexpr t_to cast(const Angle< t_from > &value)
Definition Angle.h:510