Commit Graph

112 Commits

Author SHA1 Message Date
Booklordofthedings
fea1ce4aaa
Display alpha value properly
The alpha of textures currently only displays as black and not as see through.
This fixes that issue.
2020-11-09 18:04:59 +01:00
Matt Thorson
9ded760c78
Merge pull request #2 from thibmo/contrib_Fix_Textures
Fix textures
2020-11-08 17:04:44 -08:00
Thimo
0c69b4a31e Properly implement texture Mipmap generation
* Add missing GL_GENERATE_MIPMAP
* Add one-time retrieval of glGetIntegerv(GL_MAJOR_VERSION, *)
* Opt for Mipmap generation methos based on OGL version major (<3.0 = GL_GENERATE_MIPMAP, >=3.0 = glGenerateMipmap)
2020-11-08 14:56:30 +01:00
Thimo
ae8ffdd2e3 Fix texures
* Add missing Mipmap generation call
* Add missing state clearing
* Add optional linear Mipmap flag setting
* Add optional edge clamping
* Fix texture orientation in Batcher.bf
* Fix example
2020-11-08 14:20:08 +01:00
Thimo
decb8b855d Add hitbox outline utility method 2020-11-08 14:12:08 +01:00
Thimo
d6713c3a96 Fix compiler warnings 2020-11-08 14:09:47 +01:00
Matt Thorson
658624a73d generic Calc.Approach 2020-09-22 20:57:43 -07:00
Matt Thorson
7603c2e795 Rendering Matrix stuff 2020-09-22 15:54:15 -07:00
Matt Thorson
0203ffbef7 Point is IHashable 2020-09-22 12:15:56 -07:00
Matt Thorson
610ef2308f Entity and Component Ended() 2020-09-19 22:46:45 -07:00
Matt Thorson
8747ae1cab Batcher helpers 2020-09-13 22:53:53 -07:00
Matt Thorson
ce684b1d16 State simplified 2020-09-13 17:38:48 -07:00
Matt Thorson
ce099d0cc8 Moved example physics stuff into the sample game 2020-09-12 23:52:13 -07:00
Matt Thorson
ae21809566 More renderer work 2020-09-08 20:20:26 -07:00
Matt Thorson
52d1d5f383 renderer work 2020-09-06 23:11:45 -07:00
Matt Thorson
82f1f412eb Simplifying PlatformLayer a bit. Setting up texture loading 2020-08-23 18:12:15 -07:00
Matt Thorson
1c084b55f9 OpenGL rendering hooked up. Better platform layer abstraction 2020-08-16 22:00:13 -07:00
Matt
5d62a86947 Basic rendering works 2020-08-14 18:40:07 -07:00
Matt
ae0f4c6e19 OpenGL Batcher work 2020-08-14 18:23:02 -07:00
Matt Thorson
c53bc96a5d Very basic rendering 2020-08-09 18:28:55 -07:00
Matt Thorson
637dcb21a3 Rendering stuff 2020-08-09 01:29:46 -07:00
Matt Thorson
5cef6c2b26 Texture setup 2020-08-08 14:39:08 -07:00
Matt Thorson
7329e98beb Cleanup. GL bindings 2020-08-03 22:45:50 -07:00
Matt Thorson
1bf3c1a62f Setting up open gl stuff 2020-08-03 22:02:05 -07:00
Matt Thorson
823656d8e5 PlatformLayer in, except rendering 2020-08-03 19:09:45 -07:00
Matt Thorson
d736ded07e Console commands work 2020-06-24 23:04:37 -07:00
Matt Thorson
7e929f77fc Draw overloads 2020-06-20 17:31:04 -07:00
Matt Thorson
75364ade37 More console progress 2020-06-20 14:03:45 -07:00
Matt Thorson
9de0160957 Console work 2020-06-18 00:13:50 -07:00
Matt Thorson
f95e638e91 Generalized keystroke->String to a method in Input 2020-06-16 22:38:00 -07:00
Matt Thorson
3af854f3f0 Console key detection 2020-06-16 22:18:28 -07:00
Matt Thorson
ae377c7117 Merge branch 'master' of https://github.com/MattThorson/Strawberry 2020-06-16 00:05:26 -07:00
Matt Thorson
4e3ee63074 Console and Input work 2020-06-16 00:05:23 -07:00
Matt Thorson
9f7f63980d
Update README.md 2020-06-15 23:15:01 -07:00
Matt Thorson
f325ed2598 Memory leak fix. Start of debug console 2020-06-15 23:13:29 -07:00
Matt Thorson
f1285179cd Loading fix. Font usage changes 2020-06-15 22:41:35 -07:00
Matt Thorson
de0146e4e5 Simple font loading and rendering 2020-06-15 00:56:01 -07:00
Matt Thorson
2a9940d7bd Assets split off. Better Calc.Log 2020-06-14 20:48:01 -07:00
Matt Thorson
951cd6bd07 Tween fix 2020-06-14 20:05:18 -07:00
Matt Thorson
bdd32cba8b Tween component. Bezier struct 2020-06-14 20:04:26 -07:00
Matt Thorson
5fdc34c610 Camera stack 2020-06-14 17:56:16 -07:00
Matt Thorson
272ec43e69 Rendering fixes. Console started 2020-06-14 17:51:13 -07:00
Matt Thorson
e1620cb930 Casting fixes 2020-06-14 17:27:50 -07:00
Matt Thorson
8a7a4391af Draw Sprite fix 2020-06-14 15:37:04 -07:00
Matt Thorson
8917d7f873 Aseprite loading fix. Draw.Sprite overload 2020-06-13 22:01:30 -07:00
Matt Thorson
67f0bf6e88 Cleaning. Depth => Priority 2020-05-31 19:27:26 -07:00
Matt Thorson
afabb58543 Color fixes. Draw.Circle. JSON.Enum. OnCollide leak fix 2020-05-31 17:26:50 -07:00
Matt Thorson
53ab0a7910 Point and Vector Length/LengthSquared 2020-05-30 21:02:26 -07:00
Matt Thorson
228295649e Moved Entity <=> operator for now since it was breaking list remove 2020-05-30 17:00:05 -07:00
Matt Thorson
9bb6ac6a73 Fixed crash on some Entity removals 2020-05-30 16:19:46 -07:00