Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/intern/gpu_batch_private.hh
| Show All 36 Lines | |||||
| /** | /** | ||||
| * Base class which is then specialized for each implementation (GL, VK, ...). | * Base class which is then specialized for each implementation (GL, VK, ...). | ||||
| * | * | ||||
| * \note Extends #GPUBatch as we still needs to expose some of the internals to the outside C code. | * \note Extends #GPUBatch as we still needs to expose some of the internals to the outside C code. | ||||
| */ | */ | ||||
| class Batch : public GPUBatch { | class Batch : public GPUBatch { | ||||
| public: | public: | ||||
| Batch(){}; | virtual ~Batch() = default; | ||||
| virtual ~Batch(){}; | |||||
| virtual void draw(int v_first, int v_count, int i_first, int i_count) = 0; | virtual void draw(int v_first, int v_count, int i_first, int i_count) = 0; | ||||
| /* Convenience casts. */ | /* Convenience casts. */ | ||||
| IndexBuf *elem_(void) const | IndexBuf *elem_(void) const | ||||
| { | { | ||||
| return unwrap(elem); | return unwrap(elem); | ||||
| } | } | ||||
| Show All 12 Lines | |||||