Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/opengl/gl_batch.cc
| Show First 20 Lines • Show All 273 Lines • ▼ Show 20 Lines | if (interface_ != interface) { | ||||
| } | } | ||||
| } | } | ||||
| return vao_id_; | return vao_id_; | ||||
| } | } | ||||
| /** \} */ | /** \} */ | ||||
| /* -------------------------------------------------------------------- */ | /* -------------------------------------------------------------------- */ | ||||
| /** \name Creation & Deletion | |||||
| * \{ */ | |||||
| GLBatch::GLBatch() | |||||
| { | |||||
| } | |||||
| GLBatch::~GLBatch() | |||||
| { | |||||
| } | |||||
| /** \} */ | |||||
| /* -------------------------------------------------------------------- */ | |||||
| /** \name Drawing | /** \name Drawing | ||||
| * \{ */ | * \{ */ | ||||
| void GLBatch::bind(int i_first) | void GLBatch::bind(int i_first) | ||||
| { | { | ||||
| GLContext::get()->state_manager->apply_state(); | GLContext::get()->state_manager->apply_state(); | ||||
| if (flag & GPU_BATCH_DIRTY) { | if (flag & GPU_BATCH_DIRTY) { | ||||
| ▲ Show 20 Lines • Show All 62 Lines • Show Last 20 Lines | |||||