Divide Framework 0.1
A free and open-source 3D Framework under heavy development
Loading...
Searching...
No Matches
Declarations.h
Go to the documentation of this file.
1/*
2** GLIM - OpenGL Immediate Mode
3** Copyright Jan Krassnigg (Jan@Krassnigg.de)
4** For more details, see the included Readme.txt.
5*/
6
7#ifndef GLIM_DECLARATIONS_H
8#define GLIM_DECLARATIONS_H
9
11
12namespace NS_GLIM
13{
14
16 enum class GLIM_ENUM : int
17 {
18 GLIM_NOPRIMITIVE, // for internal use
19
30
31 GLIM_NODATA, // for internal use
32 GLIM_1F, // for internal use
33 GLIM_2F, // for internal use
34 GLIM_3F, // for internal use
35 GLIM_4F, // for internal use
36 GLIM_1I, // for internal use
37 GLIM_2I, // for internal use
38 GLIM_3I, // for internal use
39 GLIM_4I, // for internal use
40 GLIM_4UB, // for internal use
41 };
42
43 enum class GLIM_BUFFER_TYPE : unsigned int {
44 POINTS,
45 LINES,
48 COUNT
49 };
50
51 // One implementation of GLIM_Interface.
52 class GLIM_BATCH;
53
54 // One global GLIM_BATCH is always defined for immediate use.
55 extern GLIM_BATCH glim;
56
57 struct GlimArrayData;
58
60
61
63 typedef void (*GLIM_CALLBACK)(void);
64
66 inline void GLIM_CHECK (bool bCondition, const char* szErrorMsg) noexcept {
67 Divide::DIVIDE_ASSERT(bCondition, szErrorMsg);
68 }
69
70}
71
72#pragma once
73
74#endif
75
76
GLIM_BUFFER_TYPE
Definition: Declarations.h:43
void GLIM_CHECK(bool bCondition, const char *szErrorMsg) noexcept
Assert Macro used internally.
Definition: Declarations.h:66
void(* GLIM_CALLBACK)(void)
Declaration for a callback-function that will be called directly before each drawcall / shader-query.
Definition: Declarations.h:63
GLIM_ENUM
The enum holding all important GLIM configuration values.
Definition: Declarations.h:17
@ GLIM_LINES
Can be passed to GLIM::Begin.
@ GLIM_LINE_STRIP
Can be passed to GLIM::Begin.
@ GLIM_QUADS
Can be passed to GLIM::Begin.
@ GLIM_POLYGON
Can be passed to GLIM::Begin.
@ GLIM_TRIANGLE_STRIP
Can be passed to GLIM::Begin (not yet implemented)
@ GLIM_POINTS
Can be passed to GLIM::Begin.
@ GLIM_LINE_LOOP
Can be passed to GLIM::Begin.
@ GLIM_TRIANGLE_FAN
Can be passed to GLIM::Begin.
@ GLIM_TRIANGLES
Can be passed to GLIM::Begin.
@ GLIM_QUAD_STRIP
Can be passed to GLIM::Begin (not yet implemented)
GlimArrayData & GLIM_ATTRIBUTE
Definition: Declarations.h:59
GLIM_BATCH glim