MeVisLab Resolution Independence API
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
20
struct
SOUTILS_EXPORT
GLVertexArrayAccess
21
{
23
GLVertexArrayAccess
();
25
~GLVertexArrayAccess
();
26
27
GLint
type
;
28
GLint
binding
;
29
GLint
stride
;
30
GLint
size
;
31
GLvoid*
pointer
;
32
33
GLint
colorType
;
34
GLint
colorBinding
;
35
GLint
colorStride
;
36
GLint
colorSize
;
37
GLvoid*
colorPointer
;
38
39
GLint
normalType
;
40
GLint
normalBinding
;
41
GLint
normalStride
;
42
GLvoid*
normalPointer
;
43
44
GLint
texCoordType
;
45
GLint
texCoordBinding
;
46
GLint
texCoordStride
;
47
GLint
texCoordSize
;
48
GLvoid*
texCoordPointer
;
49
50
private
:
51
void
mapFromGL();
52
void
unmap();
53
};
54
56
struct
SOUTILS_EXPORT
GLElementArrayAccess
57
{
58
GLElementArrayAccess
(GLvoid* indices);
59
~GLElementArrayAccess
();
60
61
GLint
binding
;
62
GLvoid*
indicesPointer
;
63
64
private
:
65
void
mapFromGL(GLvoid* indices);
66
void
unmap();
67
};
SoUtilsSystem.h
SOUTILS_EXPORT
#define SOUTILS_EXPORT
System dependent includes. Disables some compiler/linker warnings.
Definition
SoUtilsSystem.h:31
mlOpenGL.h
GLElementArrayAccess
Helper struct for getting access to the OpenGL element array data.
Definition
GLVertexArrayAccess.h:57
GLElementArrayAccess::~GLElementArrayAccess
~GLElementArrayAccess()
GLElementArrayAccess::GLElementArrayAccess
GLElementArrayAccess(GLvoid *indices)
GLElementArrayAccess::binding
GLint binding
Definition
GLVertexArrayAccess.h:61
GLElementArrayAccess::indicesPointer
GLvoid * indicesPointer
Definition
GLVertexArrayAccess.h:62
GLVertexArrayAccess
Helper struct for getting access to the OpenGL vertex array data.
Definition
GLVertexArrayAccess.h:21
GLVertexArrayAccess::texCoordStride
GLint texCoordStride
Definition
GLVertexArrayAccess.h:46
GLVertexArrayAccess::normalPointer
GLvoid * normalPointer
Definition
GLVertexArrayAccess.h:42
GLVertexArrayAccess::binding
GLint binding
Definition
GLVertexArrayAccess.h:28
GLVertexArrayAccess::colorBinding
GLint colorBinding
Definition
GLVertexArrayAccess.h:34
GLVertexArrayAccess::normalType
GLint normalType
Definition
GLVertexArrayAccess.h:39
GLVertexArrayAccess::normalBinding
GLint normalBinding
Definition
GLVertexArrayAccess.h:40
GLVertexArrayAccess::stride
GLint stride
Definition
GLVertexArrayAccess.h:29
GLVertexArrayAccess::~GLVertexArrayAccess
~GLVertexArrayAccess()
Unmaps vertex arrays on destruction.
GLVertexArrayAccess::colorStride
GLint colorStride
Definition
GLVertexArrayAccess.h:35
GLVertexArrayAccess::texCoordType
GLint texCoordType
Definition
GLVertexArrayAccess.h:44
GLVertexArrayAccess::type
GLint type
Definition
GLVertexArrayAccess.h:27
GLVertexArrayAccess::size
GLint size
Definition
GLVertexArrayAccess.h:30
GLVertexArrayAccess::texCoordSize
GLint texCoordSize
Definition
GLVertexArrayAccess.h:47
GLVertexArrayAccess::colorSize
GLint colorSize
Definition
GLVertexArrayAccess.h:36
GLVertexArrayAccess::colorPointer
GLvoid * colorPointer
Definition
GLVertexArrayAccess.h:37
GLVertexArrayAccess::texCoordBinding
GLint texCoordBinding
Definition
GLVertexArrayAccess.h:45
GLVertexArrayAccess::texCoordPointer
GLvoid * texCoordPointer
Definition
GLVertexArrayAccess.h:48
GLVertexArrayAccess::colorType
GLint colorType
Definition
GLVertexArrayAccess.h:33
GLVertexArrayAccess::GLVertexArrayAccess
GLVertexArrayAccess()
Maps bound GL vertex array state on construction.
GLVertexArrayAccess::normalStride
GLint normalStride
Definition
GLVertexArrayAccess.h:41
GLVertexArrayAccess::pointer
GLvoid * pointer
Definition
GLVertexArrayAccess.h:31
MeVisLab
Standard
Sources
Inventor
SoUtils
GLVertexArrayAccess.h
Generated by
1.10.0