1
0
Fork 0
Commit graph

42 commits

Author SHA1 Message Date
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
e0f9ffc75f GraphicsOpenGL.cpp: in init() call swapBuffers() to fill the screen with black as early as possible (right now there are some issue with WinAPI that displays a white rectangle). 2017-02-28 14:33:06 +01:00
ab9a7e576c BatchRenderer2D.cpp: use ICamera::getProjectionViewMatrix() 2016-06-27 15:50:36 +02:00
8686151215 ICamera: Adding getProjectionViewMatrix() 2016-06-27 15:48:47 +02:00
6db9d81f45 BatchRenderer2D.cpp: Remove unnused variable. 2016-06-27 15:48:09 +02:00
5a48f0d8ca source/Graphics/BatchRenderer2D.cpp: Sort by Z-order. 2016-06-26 17:16:04 +02:00
8ce53c41cb Renderable2D: Adding Z order variable. 2016-06-26 17:15:49 +02:00
84ffd0189e Renderer2D: reverse the relationship between Renderer2D and Renderable.
Pass Renderer2D to Renderable and have each subclass of Renderable decide what the Renderer should do (like drawText(), drawRect() etc).

This makes the Renderable more flexible. right now, each renderable has a texture, vertices and indices. but what if some renderables does not use textures? or more than one? What if some renderables are just a group of other renderables? (Scene Graph's).

If we instead just make Renderables implement render(Renderer2D& r) interface. we can make each renderable pass the data it holds to the renderer without a hard defined interface.
2016-06-18 13:26:08 +02:00
b2dbee33fb Font: moving text size from font to Text object. 2016-05-05 11:04:54 +02:00
c74dda1200 include/Spectre/Graphics/Font.h: move texture variable into it's own struct.
When implementing rendering of glyphs with different properties: size, stroke width, bold etc.
We will need to store them in different textures.
2016-04-23 18:36:39 +02:00
1e5d448fa1 source/Graphics/Font/FreeTypeDriver.cpp: Take outlineSize into account when setting advance. 2016-04-17 22:48:45 +02:00
6306c1e647 source/Graphics/Font/FontDriver.h: Add support for outlines. 2016-04-17 22:18:24 +02:00
308e0dff6b Graphics/Text.h: Adding outline width/color. 2016-03-29 07:31:52 +02:00
1423a161a4 source/Graphics/Font.cpp: resizeTexture() take pixelformat from current texture. 2016-03-28 17:23:20 +02:00
0a2012b611 Adding more fonts. 2016-03-08 19:08:26 +01:00
1a39c4bede source/Graphics/Texture.cpp: cleaning up pixel store/format code abit. 2016-03-08 19:02:07 +01:00
151baaa8ff Freetype: use actual metrics instead of bitmap data. also skip empty glyphs (whitespace chars/missing glyphs etc). 2016-03-08 15:14:54 +01:00
07417491cb Adding example code and project files. 2016-03-01 09:52:29 +01:00
008cb6d33f source/Graphics/Text.cpp: include Vector4.h 2016-02-17 13:28:32 +01:00
2da2601149 GLContext: Remove bpp parameter from create()
Hardcode to 32 bits for now.
2016-02-17 13:28:32 +01:00
8675018522 Graphics: Change Vertex color to 4 components. 2016-02-02 00:09:29 +01:00
edfc5298e1 Initial commit 2016-01-10 09:26:43 +01:00