MeVisLab Toolbox Reference
GLVertexArrayAccess.h
Go to the documentation of this file.
1/*************************************************************************************
2**
3** Copyright 2018, MeVis Medical Solutions AG
4**
5** The user may use this file in accordance with the license agreement provided with
6** the Software or, alternatively, in accordance with the terms contained in a
7** written agreement between the user and MeVis Medical Solutions AG.
8**
9** For further information use the contact form at https://www.mevislab.de/contact
10**
11**************************************************************************************/
12
13#pragma once
14
15#include "SoUtilsSystem.h"
16
17#include <mlOpenGL.h>
18
54
57{
60
63
64private:
65 void mapFromGL(GLvoid* indices);
66 void unmap();
67};
#define SOUTILS_EXPORT
System dependent includes. Disables some compiler/linker warnings.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
Helper struct for getting access to the OpenGL element array data.
GLElementArrayAccess(GLvoid *indices)
Helper struct for getting access to the OpenGL vertex array data.
~GLVertexArrayAccess()
Unmaps vertex arrays on destruction.
GLVertexArrayAccess()
Maps bound GL vertex array state on construction.