-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathfancygl.nim
44 lines (39 loc) · 1.33 KB
/
fancygl.nim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
########################################################################
############################### fancy gl ###############################
########################################################################
import glad/gl, glm, math, strutils, macros, ast_pattern_matching,
sdl2/sdl, sdl2/sdl_image as img, sdl2/sdl_ttf as ttf, os, terminal
const
GL_VERTEX_ARRAY: GLenum = GLenum(32884)
import fancygl/[
macroutils,
basic_random,
typeinfo
]
proc panic*(message: varargs[string, `$`]): void {. noreturn .} =
## nobody cares about exception classes
var msg = ""
for msgFract in message:
msg.add msgFract
raise newException(Exception, msg)
include "fancygl/etc.nim"
include "fancygl/glm_additions.nim"
include "fancygl/stopwatch.nim"
include "fancygl/default_setup.nim"
include "fancygl/shapes.nim"
#include "fancygl/typeinfo.nim"
include "fancygl/samplers.nim"
include "fancygl/samplertypeinfo.nim"
include "fancygl/framebuffer.nim"
include "fancygl/glwrapper.nim"
include "fancygl/heightmap.nim"
include "fancygl/iqm.nim"
include "fancygl/camera.nim"
include "fancygl/sdladditions.nim"
include "fancygl/cameraControls.nim"
include "fancygl/std140AlignedWrite.nim"
include "fancygl/nimgen.nim"
include "fancygl/shadingDsl.nim"
include "fancygl/text.nim"
export gl, glm, sdl, basic_random, macroutils.s
export math.arctan2