SGCT master (487fac4)
Simple Graphics Cluster Toolkit
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
17
18struct 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__
Definition buffer.h:16
This struct represents an individual vertex that is part of a.
Definition buffer.h:22
float t
Definition buffer.h:26
float b
Definition buffer.h:29
float y
Definition buffer.h:24
float s
Definition buffer.h:25
float g
Definition buffer.h:28
float a
Definition buffer.h:30
float x
Definition buffer.h:23
float r
Definition buffer.h:27
Definition buffer.h:18
std::vector< unsigned int > indices
Definition buffer.h:34
unsigned int geometryType
Definition buffer.h:35
std::vector< Vertex > vertices
Definition buffer.h:33