gdk-graphics 0b051eb9b5c1eaa0658babaa4463dd7a80aa9d2c
Loading...
Searching...
No Matches
model.h
1// © Joseph Cameron - All Rights Reserved
2
3#ifndef GDK_GFX_MODEL_H
4#define GDK_GFX_MODEL_H
5
6#include <gdk/model_data.h>
7
8namespace gdk {
10 class model {
11 public:
17
19 virtual void upload(const usage_hint &, const model_data &vertexDataView) = 0;
20
22 //virtual void upload(const usage_hint &, const model_data &vertexDataView, const size_t offset) = 0;
23
24 virtual ~model() = default;
25
26 protected:
27 model() = default;
28 };
29}
30
31#endif
32
vertex data stored in system memory.
Definition model_data.h:22
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
virtual ~model()=default
upload a section of vertex data