Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/opengl/gl_batch.hh
| Show First 20 Lines • Show All 90 Lines • ▼ Show 20 Lines | |||||
| }; | }; | ||||
| class GLBatch : public Batch { | class GLBatch : public Batch { | ||||
| public: | public: | ||||
| /** All vaos corresponding to all the GPUShaderInterface this batch was drawn with. */ | /** All vaos corresponding to all the GPUShaderInterface this batch was drawn with. */ | ||||
| GLVaoCache vao_cache_; | GLVaoCache vao_cache_; | ||||
| public: | public: | ||||
| GLBatch(); | |||||
| ~GLBatch(); | |||||
| void draw(int v_first, int v_count, int i_first, int i_count) override; | void draw(int v_first, int v_count, int i_first, int i_count) override; | ||||
| void bind(int i_first); | void bind(int i_first); | ||||
| /* Convenience getters. */ | /* Convenience getters. */ | ||||
| GLIndexBuf *elem_(void) const | GLIndexBuf *elem_(void) const | ||||
| { | { | ||||
| return static_cast<GLIndexBuf *>(unwrap(elem)); | return static_cast<GLIndexBuf *>(unwrap(elem)); | ||||
| } | } | ||||
| Show All 14 Lines | |||||