6956688430
add title to README
frank2022-07-23 19:30:39 -04:00
ee06bb6732
use markdown for README
frank2022-07-23 19:27:49 -04:00
d1cb24a785
angle difference and ratio methods
frank2022-07-23 18:55:27 -04:00
7e31b5a1c0
fix trigonometry functions so angles correspond with GL coordinates, add function to calculate angle between two vectors
frank2022-06-19 23:28:01 -04:00
3444afc2c1
changed get_configuration to configuration; added option to return the larger ratio to box aspect; changed default window size to 16:9; changed get_window to window; added SDL_RENDERER_PRESENTVSYNC; removed clear renderer to black on emscripten builds to prevent mouse bug;
frank2022-06-16 16:45:41 -04:00
ee119ecc7e
add engine name to log file name
frank2022-05-06 23:39:32 -04:00
86ca3eabec
convert ndc box to pixel coordinates box in display
frank2021-11-19 14:13:37 -05:00
660865b2f2
read individual vertices and components of vertices in attributes
frank2021-11-16 23:20:56 -05:00
54cf01246b
Display object can return ndc coordinates from a pixel coordinate box
frank2021-11-13 14:49:56 -05:00
03d179eed4
attributes can be accessed as a typed vector; box set gl mode function; mouse events are suppressed in addition to key events when input is suppressed
frank2021-11-09 23:30:27 -05:00
863db5467b
mod only works on int
frank2021-11-04 01:16:09 -04:00
dd736f341f
started utilities file
frank2021-11-01 17:33:27 -04:00
2c0517b9e2
change uint to int for attributes bind index
frank2021-10-29 22:09:01 -04:00
950a95502b
attributes print format
frank2021-10-29 01:07:48 -04:00
70bc054c7f
updated documentation of attribute index
frank2021-10-26 14:05:43 -04:00
9e5ecc3ace
bind and enable/disable attributes
frank2021-10-26 12:48:02 -04:00
df8bf267f0
added const qualifier to box stamp method
Frank DeMarco2020-09-06 03:02:02 -04:00
35a5acbd53
optionally exclude delay time from checking if animation is playing
Frank DeMarco2020-09-05 19:40:59 -04:00
0e6e506c68
added children to sprites; sprite can set canvas it will draw on; fixed memory leak in precise collision detection on scaled sprites
Frank DeMarco2020-09-04 23:10:39 -04:00
877d63cf4e
fix sprite wipe and precision collision for scaled sprites; box move and return copy function
Frank DeMarco2020-09-02 23:32:01 -04:00
3a571adaa3
segment comparison operators; get sdl surface from pixels
Frank DeMarco2020-09-01 17:00:17 -04:00
9058f93ad9
reverse wipe; more precision converting floats in box to sdl_rect
Frank DeMarco2020-08-31 16:36:56 -04:00
66f6d6ef81
specify render driver in config; print all renderer options
Frank DeMarco2020-08-28 22:17:01 -04:00
536a5ec5f5
separate move weighted from move in sprite class
Frank DeMarco2020-08-27 20:41:21 -04:00
edc836908d
box inherits sdl_rect; color comparison operators; pixels operator() returns pointer of void, 8bit, 16bit, or 32bit; remap texture uses pixel class
Frank DeMarco2020-08-26 16:43:43 -04:00
8346f43f21
- Pixel class generalizes pixel access, reads, writes, and applies pixel value modifications to textures of any SDL_TEXTUREACCESS_* and any pixel format - Color inherits SDL_Color directly instead of emulating it - added cast operator for converting Box to SDL_Rect
Frank DeMarco2020-08-22 20:06:06 -04:00
14afcef0ce
fix root lookup; add vec2 to json types; render test image when window is created
Frank DeMarco2020-08-21 02:21:34 -04:00
bab8c778ca
color class, sprite hue shift, generate halo and portal effect animation frames, ignore repeat keys, hue shifted texture
Frank DeMarco2020-08-19 03:29:46 -04:00
ae644b7138
collide box/box, box/line, box/point; sprite/sprite and sprite/box precise alpha collision
Frank DeMarco2020-08-09 16:32:32 -04:00
2b9dd44ff7
- fix bug in box right drag - print int vector - duplicate texture resized
Frank DeMarco2020-08-07 01:38:19 -04:00
f5d03b9be6
- extended version of sdl gfx primitives - drag left and right edge box - complete segment member functions - extension functions: get segments, get relative step, populate pixel array
Frank DeMarco2020-08-06 18:54:50 -04:00
1861b80aa4
line intersection formula from GraphicsGems; started Segment class
Frank DeMarco2020-08-02 00:52:50 -04:00
bc2a4a39ad
- sprite additions: multiple locations, auto wrapping, scale mod - remap colors on a texture - two pixel scaling algorithms: custom scale2x based on http://www.scale2x.it/algorithm.html and superxbr
Frank DeMarco2020-07-25 17:55:27 -04:00
1df303fe17
added frameset class for use with sprite class
Frank DeMarco2020-07-17 22:58:23 -04:00
d471bdd651
- added const qualifier to some box and sprite functions - store frame length history for debugging - function for setting Node parent after initialization - set magnitude helper function
Frank DeMarco2020-07-13 00:53:12 -04:00
605360bae5
Sprite accepts alpha mod parameter; duplicate texture method
Frank DeMarco2020-07-11 02:06:58 -04:00
74ca4da69a
- replaced location with box, added get/set functions for size and sides - preprocessor statements for handling emscripten main loop - pass floats to render functions - added box and get/set box functions to sprite class - functions for filling a texture with solid color or tile texture
Frank DeMarco2020-06-27 17:47:14 -04:00