Divide Framework 0.1
A free and open-source 3D Framework under heavy development
Loading...
Searching...
No Matches
glim.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_GLIM_H
8#define GLIM_GLIM_H
9
10#include "Declarations.h"
11#include "glimBatch.h"
12
13
14// Include this Header to get access to all GLIM functions.
15
16
17// In order to properly use GLIM, don't forget to set the callback
18// GLIM_Interface::s_StateChangeCallback
19// to a function that applies all your OpenGL states.
20// This is necessary, if you cache state-changes and only want to
21// apply them when it is actually necessary.
22// GLIM will call this callback just before querying shader states,
23// binding the vertex arrays and making the draw-calls.
24
25
26// GLIM TODO LIST:
27/*
28
29 * Implement support for all primitive types:
30 GLIM_TRIANGLE_STRIP
31 GLIM_QUAD_STRIP
32
33 * If GL3 adds Quads back in (or one uses the compatibility mode):
34 Don't triangulate Quads.
35
36 * Add an additional Index-Buffer to GLIM_BATCH for wireframe rendering.
37
38
39*/
40
41#pragma once
42
43#endif
44
45