Commit Graph

44 Commits

Author SHA1 Message Date
zv0n 7390f684f5 SDLPP: rectcolider now has min height/width property 2021-05-25 12:18:03 +02:00
zv0n 34324d3054 SDLPP: get/set id in visitor 2021-05-02 14:03:43 +02:00
zv0n e84284e613 SDLPP: can set minimal width/height on rectangle renderer 2021-05-02 14:03:26 +02:00
zv0n 4e81ac6562 SDLPP: if one object is entirely contained within another, it is a collision 2021-04-29 19:48:45 +02:00
zv0n 4f20274f11 SDLPP: mouse position functions 2021-04-29 19:48:05 +02:00
zv0n ff741dd882 SDLPP: add texture flipping/rotation 2021-04-29 13:06:37 +02:00
zv0n e5d0610f6d SDLPP: add option to specify render object alignment 2021-04-27 15:58:01 +02:00
zv0n dd6f37264c SDLPP: add collider IDs 2021-04-26 21:57:31 +02:00
zv0n 7206dbf7c3 SDLPP: Scene - add visitCollisions function 2021-04-25 16:07:46 +02:00
zv0n 5b96de0d9d SDLPP: Scene - add function to bring objet to the front or back of Z 2021-04-25 15:54:16 +02:00
zv0n 1f5e3a999c SDLPP: add header files to sdlpp.hpp 2021-04-25 14:09:14 +02:00
zv0n 87970bfc4b SDLPP: Visitor pattern 2021-04-25 13:57:33 +02:00
zv0n ee82430f82 SDLPP: animation/movement chagnes 2021-04-24 23:26:27 +02:00
zv0n 6cfe2046d4 SDLPP: Formatting 2021-03-15 14:50:40 +01:00
zv0n 4cd351c7a3 SDLPP: Texture - use SDL_Color 2021-03-15 14:48:48 +01:00
zv0n 8540573455 SDLPP: RenderObject - use Vec2D 2021-03-15 14:43:56 +01:00
zv0n 6ecdb6d90d SDLPP: Renderer/Scene - use Vec2D instead of std::pair 2021-03-15 14:37:53 +01:00
zv0n aaae85a932 SDLPP: LineRenderer - use new features 2021-03-15 14:30:01 +01:00
zv0n 8b3eee0673 SDLPP: Split fontconfiguration into 2 files 2021-03-15 14:18:41 +01:00
zv0n 2f20661b5b SDLPP: formatting, make compileable on Linux 2021-03-13 18:36:29 +01:00
zv0n d2cf54556e New collision detection 2021-03-13 15:05:16 +01:00
zv0n 258ce51cfe Trying to switch to more object-oriented 2021-03-12 22:33:46 +01:00
zv0n bb502b37f4 Animation 2021-03-07 14:06:55 +01:00
zv0n c7ec12584c Add texture alpha blending 2021-03-07 13:18:58 +01:00
zv0n fbc1fdd6f7 Added source rectangle option for texture setting 2021-03-07 13:06:08 +01:00
zv0n fa10620901 TODOs 2021-03-07 12:20:00 +01:00
zv0n 2661d6ca76 SDLPP: CircleRenderer can be rendered 2021-01-31 21:48:48 +01:00
zv0n 8481560175 Decided this TODO isn't required 2021-01-31 18:17:41 +01:00
zv0n f92a94ef01 SDLPP: Don't save textures before render
Since textures should only be manipulated in the main thread (as well
as rendering), let programmers deal with ensuring the texture is
available during rendercopy
2021-01-31 15:56:47 +01:00
zv0n 392bc4f203 TETRIS: Add windows_release target to Makefile 2021-01-30 23:14:12 +01:00
zv0n a8ff8e49c7 SDLPP: Don't automatically updateSizeAndPosition with every text change
This can lead to problems becuase only main thread can update textures,
let programmers figure out when is the appropriate time to update a
texture.
2021-01-30 22:59:22 +01:00
zv0n 2622c9fb98 SDLPP: Make compile-able in g++ 2021-01-30 22:23:45 +01:00
zv0n 73f67a3f47 SDLPP: Use FontConfiguration to store font configuration
With this it is possible to only store 1 configuration object
as opposed to storing font configuration inside every TextRenderer
2021-01-30 21:32:08 +01:00
zv0n 1f7a80d7d2 SDLPP: Save texture before rendering
In some cases texture might be changed after render() has been called
but before renderer presented the render, causing errors.
2021-01-30 21:30:51 +01:00
zv0n a818c567fc SDLPP: TextRenderer remembers last font/color/outline
This is used for changeText() and updateSizeAndPosition() so programmer
doesn't have to pass the text configuration with every change of text/size.
2021-01-30 16:43:43 +01:00
zv0n ad1805101c SDLPP TextRenderer: actually copy in copySelf 2020-12-18 16:12:26 +01:00
zv0n 27949f891a SDLPP LineRenderer: actually copy in copySelf 2020-12-18 16:05:38 +01:00
zv0n 20c30712b9 SDLPP: make copySelf actually copy everything 2020-12-18 16:02:02 +01:00
zv0n 7267cb7b9a SDLPP TextRenderer: change font size based on rectangle height 2020-12-18 15:10:13 +01:00
zv0n 57143262ac SDLPP: allow change of font size 2020-12-18 15:08:21 +01:00
zv0n 346b8ce384 Formatting 2020-11-22 23:48:45 +01:00
zv0n 730a00b8fa SDLPP: add .dll target for windows 2020-11-22 23:37:55 +01:00
zv0n afc836902b Make dynamic library work on macos 2020-11-22 21:58:37 +01:00
zv0n 633502b189 Split sdlpp into smaller files 2020-11-21 20:57:40 +01:00