SGCT
master (487fac4)
Simple Graphics Cluster Toolkit
Toggle main menu visibility
Loading...
Searching...
No Matches
buffer.h
Go to the documentation of this file.
1
/*****************************************************************************************
2
* SGCT *
3
* Simple Graphics Cluster Toolkit *
4
* *
5
* Copyright (c) 2012-2026 *
6
* For conditions of distribution and use, see copyright notice in LICENSE.md *
7
****************************************************************************************/
8
9
#ifndef __SGCT__BUFFER__H__
10
#define __SGCT__BUFFER__H__
11
12
#include <sgct/sgctexports.h>
13
14
#include <vector>
15
16
namespace
sgct::correction
{
17
18
struct
SGCT_EXPORT
Buffer
{
22
struct
Vertex
{
23
float
x
= 0.f;
24
float
y
= 0.f;
25
float
s
= 0.f;
26
float
t
= 0.f;
27
float
r
= 0.f;
28
float
g
= 0.f;
29
float
b
= 0.f;
30
float
a
= 0.f;
31
};
32
33
std::vector<Vertex>
vertices
;
34
std::vector<unsigned int>
indices
;
35
unsigned
int
geometryType
= 0x0004;
// = GL_TRIANGLES
36
};
37
38
}
// namespace sgct::correction
39
40
#endif
// __SGCT__BUFFER__H__
sgct::correction
Definition
buffer.h:16
sgct::correction::Buffer::Vertex
This struct represents an individual vertex that is part of a.
Definition
buffer.h:22
sgct::correction::Buffer::Vertex::t
float t
Definition
buffer.h:26
sgct::correction::Buffer::Vertex::b
float b
Definition
buffer.h:29
sgct::correction::Buffer::Vertex::y
float y
Definition
buffer.h:24
sgct::correction::Buffer::Vertex::s
float s
Definition
buffer.h:25
sgct::correction::Buffer::Vertex::g
float g
Definition
buffer.h:28
sgct::correction::Buffer::Vertex::a
float a
Definition
buffer.h:30
sgct::correction::Buffer::Vertex::x
float x
Definition
buffer.h:23
sgct::correction::Buffer::Vertex::r
float r
Definition
buffer.h:27
sgct::correction::Buffer
Definition
buffer.h:18
sgct::correction::Buffer::indices
std::vector< unsigned int > indices
Definition
buffer.h:34
sgct::correction::Buffer::geometryType
unsigned int geometryType
Definition
buffer.h:35
sgct::correction::Buffer::vertices
std::vector< Vertex > vertices
Definition
buffer.h:33
sgct
correction
buffer.h
Generated by
1.18.0