Main Page
Namespaces
Classes
Files
File List
File Members
include
Graphics
GL4
GteGL4InputLayout.h
Go to the documentation of this file.
1
// David Eberly, Geometric Tools, Redmond WA 98052
2
// Copyright (c) 1998-2017
3
// Distributed under the Boost Software License, Version 1.0.
4
// http://www.boost.org/LICENSE_1_0.txt
5
// http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
6
// File Version: 3.0.0 (2016/06/19)
7
8
#pragma once
9
10
#include <
Graphics/GteVertexBuffer.h
>
11
#include <
Graphics/GL4/GteOpenGL.h
>
12
13
namespace
gte
14
{
15
16
class
GTE_IMPEXP
GL4InputLayout
17
{
18
public
:
19
// Construction and destruction.
20
~
GL4InputLayout
();
21
GL4InputLayout
(
GLuint
programHandle,
GLuint
vbufferHandle,
22
VertexBuffer
const
* vbuffer);
23
24
// Support for drawing geometric primitives.
25
void
Enable();
26
void
Disable();
27
28
private
:
29
GLuint
mProgramHandle
;
30
GLuint
mVBufferHandle
;
31
GLuint
mVArrayHandle
;
32
33
struct
Attribute
34
{
35
VASemantic
semantic
;
36
GLint
numChannels
;
37
GLint
channelType
;
38
GLboolean
normalize
;
39
GLint
location
;
40
GLintptr
offset
;
41
GLsizei
stride
;
42
};
43
44
int
mNumAttributes
;
45
Attribute
mAttributes[
VA_MAX_ATTRIBUTES
];
46
47
// Conversions from GTEngine values to GL4 values.
48
static
GLenum
const
msChannelType[];
49
};
50
51
}
GLint
int GLint
Definition:
glcorearb.h:85
GLuint
unsigned int GLuint
Definition:
glcorearb.h:89
gte::GL4InputLayout::Attribute::offset
GLintptr offset
Definition:
GteGL4InputLayout.h:40
VA_MAX_ATTRIBUTES
VA_MAX_ATTRIBUTES
Definition:
GteVertexFormat.h:41
gte::GL4InputLayout
Definition:
GteGL4InputLayout.h:16
gte::GL4InputLayout::Attribute::stride
GLsizei stride
Definition:
GteGL4InputLayout.h:41
gte::GL4InputLayout::Attribute::location
GLint location
Definition:
GteGL4InputLayout.h:39
GLboolean
unsigned char GLboolean
Definition:
glcorearb.h:90
gte::GL4InputLayout::mNumAttributes
int mNumAttributes
Definition:
GteGL4InputLayout.h:44
gte::GL4InputLayout::mVBufferHandle
GLuint mVBufferHandle
Definition:
GteGL4InputLayout.h:30
gte::GL4InputLayout::mVArrayHandle
GLuint mVArrayHandle
Definition:
GteGL4InputLayout.h:31
gte::VertexBuffer
Definition:
GteVertexBuffer.h:18
GteOpenGL.h
GLsizei
int GLsizei
Definition:
glcorearb.h:86
GLenum
unsigned int GLenum
Definition:
glcorearb.h:83
gte::GL4InputLayout::Attribute
Definition:
GteGL4InputLayout.h:33
gte
Definition:
GLX/GteWICFileIO.h:16
GteVertexBuffer.h
gte::GL4InputLayout::Attribute::normalize
GLboolean normalize
Definition:
GteGL4InputLayout.h:38
gte::GL4InputLayout::mProgramHandle
GLuint mProgramHandle
Definition:
GteGL4InputLayout.h:29
gte::GL4InputLayout::Attribute::semantic
VASemantic semantic
Definition:
GteGL4InputLayout.h:35
gte::GL4InputLayout::Attribute::numChannels
GLint numChannels
Definition:
GteGL4InputLayout.h:36
GTE_IMPEXP
#define GTE_IMPEXP
Definition:
GTEngineDEF.h:63
GLintptr
ptrdiff_t GLintptr
Definition:
glcorearb.h:618
gte::GL4InputLayout::Attribute::channelType
GLint channelType
Definition:
GteGL4InputLayout.h:37
geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 04:00:00