gdk-graphics 0a0aef92e917cfbac53dffbc32c295e4de914093
Loading...
Searching...
No Matches
model.h
1// © Joseph Cameron - MIT License
2
3#ifndef GDK_GRAPHICS_MODEL_H
4#define GDK_GRAPHICS_MODEL_H
5
6#include <gdk/graphics/model_data.h>
7
8namespace gdk::graphics {
10 class model {
11 public:
17
19 virtual void upload(const usage_hint &, const model_data &vertexDataView) = 0;
20
21 virtual ~model() = default;
22
23 protected:
24 model() = default;
25 };
26}
27
28#endif
29
vertex data stored in system memory.
Definition model_data.h:25
virtual void upload(const usage_hint &, const model_data &vertexDataView)=0
replace vertex data held by this model
usage_hint
Definition model.h:12
@ streaming
data will be rewritten extremely frequently
Definition model.h:14
@ dynamic
data will be rewritten
Definition model.h:13
@ upload_once
data will only be written once
Definition model.h:15