CG-Project2
Loading...
Searching...
No Matches
Structs.hpp
1#pragma once
2
6struct Color {
8 float r = 0.f;
10 float g = 0.f;
12 float b = 0.f;
14 float a = 1.f;
15};
16
22 unsigned int target = 0;
24 int level = 0;
28 int border = 0;
30 unsigned int format = 0;
32 unsigned int dataType = 0;
33};
34
38struct RBConfig {
40 unsigned int format = 0;
42 unsigned int attachment = 0;
44 unsigned int width = 0;
46 unsigned int height = 0;
47};
48
52struct FBConfig {
54 unsigned int operation = 0;
56 unsigned int width = 0;
58 unsigned int height = 0;
59};
Simple data structure to store a RGBA color.
Definition Structs.hpp:6
float b
blue channel
Definition Structs.hpp:12
float r
red channel
Definition Structs.hpp:8
float g
green channel
Definition Structs.hpp:10
float a
alpha channel
Definition Structs.hpp:14
Data structure to create an ogl::FrameBuffer using these parameters.
Definition Structs.hpp:52
unsigned int width
frame buffer width
Definition Structs.hpp:56
unsigned int height
frame buffer height
Definition Structs.hpp:58
unsigned int operation
frame buffer operation
Definition Structs.hpp:54
Data structure to create an ogl::RenderBuffer using these parameters.
Definition Structs.hpp:38
unsigned int attachment
render buffer attachment
Definition Structs.hpp:42
unsigned int height
render buffer image height
Definition Structs.hpp:46
unsigned int format
render buffer format
Definition Structs.hpp:40
unsigned int width
render buffer image width
Definition Structs.hpp:44
Data structure to create an ogl::Texture using these parameters.
Definition Structs.hpp:20
int level
texture level
Definition Structs.hpp:24
unsigned int format
texture data format
Definition Structs.hpp:30
int internalFormat
texture internal data format
Definition Structs.hpp:26
unsigned int dataType
texture data type
Definition Structs.hpp:32
int border
texture border
Definition Structs.hpp:28
unsigned int target
texture target
Definition Structs.hpp:22