1
0
Fork 0
Commit graph

71 commits

Author SHA1 Message Date
2a111a237d
Move OpenGL headers from API to implementation.
We don't want to expose any OpenGL functions to client code. Because if we do, there is a chance we break client code if we switch implementation (Direct3D).
2020-01-03 20:30:08 +01:00
1dc0ecf563
Update Readme 2020-01-02 05:06:17 +01:00
8c9c1e0997
remove libpng and libjpeg (we use stb instead) 2020-01-02 05:05:29 +01:00
4df668e68f
Minor formating fixes. 2019-12-29 22:26:05 +01:00
6f53b0c069
source/Platform/Win32/Win32Display.cpp: in setSize() add cast to silence compiler warnings. 2019-12-29 22:16:54 +01:00
effc723f54
bam.lua: Win32: move freetype libpath to examples settings. 2019-12-29 22:14:04 +01:00
c97c75d56f
Remove VS project files. 2019-12-29 22:07:12 +01:00
99140d5800
bam.lua: minor style fixes. 2019-12-29 20:45:40 +01:00
a6bfa15044
System/MessageQueue: postEvent() should not accept a reference. 2019-12-29 20:45:40 +01:00
f67f89715a
Adding bam build system. 2019-12-29 20:45:43 +01:00
9835082b67
source/Platform/Win32/Win32GLContext.cpp: minor fixes to log strings. 2019-12-24 20:29:13 +01:00
a39069cdb9
GL/WGL: Upgrade to glad2 2019-12-24 20:29:16 +01:00
3b27db9435
include/Spectre/System/Log.h: implement a static "Log" class instead of just a function. 2019-11-10 14:56:56 +01:00
e10daeaaa6
Move everything from global namespace to "sp" namespace
When writing the X11 (linux) implementation there was a problem with X11 defining a "Display" type and we also have a Display class in the engine.

So to fix that problem and minimize the risk for running into other name conflicts. We move everything from global namespace.
2019-09-30 19:10:17 +02:00
9da8addeb2 include/Spectre/Math/Matrix4.inl: gcc complains about multiple definitions of Identity. just template the type instead of only allow float. 2019-06-01 21:06:59 +02:00
ffe75049d0 include/Spectre/Math/Matrix4.inl: gcc need "template<>" for Indentity variable. 2019-06-01 21:06:59 +02:00
77804b8620 include/Spectre/Math/Matrix4.inl: in matrix vector multiplication. for some reason g++ was not happy with calling the constructor. this works. 2019-06-01 21:06:59 +02:00
6b8c766702 source/Input/InputListener.cpp: "Inputlistener" should be "InputListener" 2019-06-01 18:49:24 +02:00
179b5c93a0 source/GraphicsOpenGL.cpp: in getVersion() use std::string for 'prof' variable (gcc throws warnings about char pointer) 2019-06-01 18:06:38 +02:00
c590b5b16a include/Spectre/Input/InputDevice.h: include InputModule 2019-06-01 18:01:26 +02:00
87a59ef21f source/Graphics/Shader.cpp: minor fix. 2019-05-31 20:19:00 +02:00
f3a3a6aa4d source/Graphics: do not prefix standard c functions with "std::", also include the right files. 2019-05-31 20:14:47 +02:00
ba11d5002b include/Spectre/Graphics/PixelFormat.h: Minor stuff. 2019-05-31 19:36:58 +02:00
d1b613058d include/Spectre/Math/Vector2.inl: minor fix. 2019-05-31 16:26:22 +02:00
0c76494939 include/Spectre/Math/Vector2.inl: less than or equal operator should be written as "<=" not "=<" 2019-05-31 15:46:40 +02:00
482ce62023
source/Math/Math.cpp: removed comment. 2019-04-29 10:56:14 +02:00
7bf8617267
include/Spectre/Math/Matrix3.h: minor comment fix. 2019-04-29 08:54:40 +02:00
84d773dc0d
Math/Matrix3: remove Zero static variable (default constructor creates a zero matrix). 2019-04-29 08:54:15 +02:00
4e29b3ea2c
include/Spectre/Math/Matrix4.inl: make sure the default constructor creates a zero matrix. 2019-04-29 08:48:40 +02:00
7605d4346f
adding assets/textures/tux.png 2018-06-21 13:17:49 +02:00
d65e31f4f7 Merge branch '2-replace-glew' into dev 2018-05-14 21:05:37 +02:00
72e47a8e47 vsproject: updated files. 2018-05-14 21:02:07 +02:00
ab09dacdfc remove GLEW library 2018-05-14 16:28:30 +02:00
f1c68cb0b4 remove GLEW headers. 2018-05-14 16:28:06 +02:00
45a3362d99 include/Spectre/Graphics/OpenGL.h: include GLAD instead of glew. 2018-05-14 16:27:55 +02:00
a1804cd3df source/Platform/Win32/Win32GLContext.cpp: use GLAD 2018-05-14 16:27:18 +02:00
e2195c1d49 Adding GLAD files. 2018-05-14 12:01:33 +02:00
ebd598b2b0 Fixing a bunch of compiler warnings. 2018-05-12 19:31:34 +02:00
ede60da544 source/Graphics/Font/FreeTypeDriver.cpp: get rid of some compiler warnings by proper casting. 2018-05-12 19:25:57 +02:00
17e580dfa2 include/Spectre/Graphics/Vertex2D.h: minor fix. 2018-05-12 19:22:01 +02:00
a3ca31bb3d update Visual Studio project files. 2018-05-12 19:21:38 +02:00
eae90dbb6d Updated FreeType2 from 2.6 to 2.9.1 2018-05-12 19:15:12 +02:00
9e1f6271cd source/Platform/Win32/Win32GLContext.cpp: forcing 3.2 Core context. 2018-02-28 11:58:41 +01:00
03e692cd50 source/GraphicsOpenGL.cpp: implement getVersion() 2018-02-28 11:22:19 +01:00
a0949b981f include/Spectre/Graphics.h: Adding getVersion() 2018-02-28 11:21:59 +01:00
93f869acc6 BatchRenderer2D: OpenGL Core profile requires the use of VAO, so implement that. 2018-02-28 00:42:09 +01:00
4bc2b3fa56 gitignore: ignore some more vs stuff. 2018-02-28 00:05:58 +01:00
babd741fa4 source/Graphics/Transformable.cpp: scale() should invalidate the transform. 2018-02-27 21:25:32 +01:00
e57f099a3c include/Spectre/Math/Vector2.inl: fixing stupid error in one of the scalar compare functions (forgot to use the vector object) 2018-02-27 21:18:16 +01:00
72ee3fbfde include/Spectre/Math/Vector2.inl: fixing some scalar functions that did not have the correct function definition. 2018-02-27 21:14:54 +01:00