1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2024-11-29 03:33:48 +00:00
Commit graph

1254 commits

Author SHA1 Message Date
fgenesis
b33080b0ea remove immediate mode from quad rendering. breaks a couple rendering details too. WIP. 2023-10-20 00:37:00 +02:00
fgenesis
a4ea66761b fixes to SceneEditor, some more things are working again 2023-10-20 00:35:25 +02:00
fgenesis
a1037091ad another int that should be float 2023-10-18 02:16:37 +02:00
fgenesis
56b3439d12 support scaling bones in anim editor 2023-10-18 02:16:14 +02:00
fgenesis
78ddd0862d begin scene editor fixup after breakage 2023-10-15 00:06:45 +02:00
fgenesis
7cd8f51b47 Fix typo in 5a9025a2a7 that caused crashing 2023-09-24 18:04:40 +02:00
fgenesis
60e3c4d7ad Fix Lua entityDied() never getting called; botched in bf58fe91c6 2023-09-14 01:52:44 +02:00
fgenesis
e253069509 stfu dumb msvc analyzer 2023-09-14 01:17:11 +02:00
fgenesis
960bd90fc8 kill ARRAYSIZE(), there's the safer Countof() 2023-09-14 01:14:22 +02:00
fgenesis
67149a5b35 Make all LR_* and ACTION_* enum values available to Lua 2023-09-14 01:13:43 +02:00
fgenesis
fc920b3040 Add obj_getRenderPass() Lua func 2023-09-14 00:23:55 +02:00
fgenesis
5a9025a2a7 cleanup legacy entity targets; don't allocate 10 slots up front since barely any entity uses even slot 0
Also fix probably wrong target check in entity_hurtTarget()
2023-09-14 00:19:08 +02:00
fgenesis
ed5cd03a06 tiny cleanup 2023-09-14 00:02:13 +02:00
fgenesis
bf58fe91c6 fix some rare crashes with dangling pointers
- Always handle entity death ie. do pointer cleanup
- Call Lua entityDied() only when EV_ENTITYDIED is set
- EV_ENTITYDIED is now meaningless for non-scripted entities
2023-09-13 23:56:11 +02:00
fgenesis
4013a9c09b working on quad repeat, this probably breaks it but will continue later 2023-09-13 23:39:22 +02:00
fgenesis
db8912cb16 Merge branch 'tile-optimization' of github.com:AquariaOSE/Aquaria into tile-optimization 2023-09-10 20:34:09 +02:00
fgenesis
8d49e62428 SceneEditor: hovering tiles works again 2023-09-08 19:23:03 +02:00
fgenesis
f1656d2fbc small clarification in framebuffer, no functional change 2023-08-26 02:09:44 +02:00
fgenesis
048a787cb1 get rid of beforeScaleOffset 2023-08-26 00:58:47 +02:00
fgenesis
c959b9f6d6 don't need to set line width again and again 2023-08-26 00:31:46 +02:00
fgenesis
a111bfc17f use VBO to render tile borders
Also fix oversight in DynamicGPUBuffer::drawElements(); first wasn't used
2023-08-26 00:14:05 +02:00
fgenesis
cc78b300cc Cleanups and fixes to AfterEffect
- fully uses RenderGrid now, no more immediate mode
- remove RippleEffect because it was unused
- Don't render the grid if no effects are active. Sames some GPU time.
- Fix ShockEffect math, broken 2 commits ago
2023-08-25 21:49:16 +02:00
fgenesis
c1084a022d forgot a virtual dtor 2023-08-25 20:14:30 +02:00
fgenesis
2f7dd87d8b fix IBO generation...oops 2023-08-25 14:07:25 +02:00
fgenesis
71f9120c30 rework AfterEffect to use RenderGrid instead of its own thing 2023-08-25 14:07:11 +02:00
fgenesis
3c48349e94 remove tiny unused things 2023-08-25 01:57:28 +02:00
fgenesis
6afe0257da node_title continuity reset breaks stuff now, and appears to be unnecessary
- Tile effects are loaded on continuity reset, which clears ALL tiles.
  This is bad and needs further fixing.
- Continuity reset happens in other ways, too
- So effectively a bunch of text files were loaded twice
- Very slight improvement to startup time
- Should probably remove the Lua function...?
- Don't warp mouse on title screen (less intrusive)
2023-08-25 01:29:23 +02:00
fgenesis
7e040ea354 tile repeat with grid effects works again 2023-08-25 00:40:14 +02:00
fgenesis
f9a91e87e4 Move CombinedRenderAndGPUState up one level 2023-08-25 00:39:35 +02:00
fgenesis
d31d320719 set GL textures to always repeat to avoid unnecessary calls to glTexParameteri()
Shouldn't have any visual changes because edge clamp is never actually used
2023-08-25 00:38:36 +02:00
fgenesis
17452f175e tiny fixes to VBO 2023-08-25 00:35:27 +02:00
fgenesis
6a7aa66bab splinegrid: allow changing point size to better acommodate very large or very small textures 2023-08-22 21:28:05 +02:00
fgenesis
368271c40e More work on tile rendering:
- Use indexed triangle rendering, no more GL_QUADS for tiles
- Fix aquarian text on maps
- Tile tex repeat mode works again

Known broken:
- Editor
- Tile repeat with grid effects
2023-08-09 02:41:04 +02:00
fgenesis
395ff079e9 Experimenting with GL debug context and GL_ARB_debug_output 2023-08-09 02:34:12 +02:00
fgenesis
dacfde0416 more params to refreshElements*Callback() callback functions
params now:
idx, tex, active, layer, tag, x, y, scalex, scaley, rot, fh, fv, repeatscalex, repeatscaley
2023-08-01 22:43:25 +02:00
fgenesis
ff035a37fa fix some asserts 2023-08-01 22:39:48 +02:00
fgenesis
e27a031229 Get rid of GL functions with double precision that were accidentally used
# Conflicts:
#	BBGE/OpenGLStubs.h
2023-08-01 22:39:34 +02:00
fgenesis
fa72328d5c Fix missing textures in ingredient pickup effect and new recipe notification 2023-08-01 20:47:13 +02:00
fgenesis
defaa60850 don't quadruple overdraw points in grid debug render 2023-08-01 20:46:55 +02:00
fgenesis
2993145f2a "3" is not a valid internalformat for glTexImage2D() 2023-08-01 20:46:35 +02:00
fgenesis
704981dd00 initial support for static vertex buffers. TileRender uses that now. 2023-07-20 23:11:18 +02:00
fgenesis
e9e81e5ef9 "3" is not a valid internalformat for glTexImage2D() 2023-07-20 22:28:20 +02:00
fgenesis
bc3dfdb9a3 don't quadruple overdraw points in grid debug render 2023-07-20 22:27:50 +02:00
fgenesis
4b2008d06b Fix missing textures in ingredient pickup effect and new recipe notification 2023-07-20 22:26:18 +02:00
fgenesis
16235a4ad1 Get rid of GL functions with double precision that were accidentally used 2023-07-18 18:59:09 +02:00
fgenesis
7768bf3059 unnecessary file 2023-07-18 18:58:18 +02:00
fgenesis
3ac706f1b6 Fix support for vertically flipped tiles
Turns out there was another renderer bug that would effectively
ignore the vertical flip if a Quad had an active ElementEffect that
used a grid (effects on numpad keys 1,2,3,5,6).
2023-07-18 18:57:54 +02:00
fgenesis
1da28ec40a fix tile repeat, works now 2023-07-14 05:21:16 +02:00
fgenesis
9b1c3bba18 rendering optimizations; work towards making the transition to VBOs eventually 2023-07-14 04:25:59 +02:00
fgenesis
ab218ceca6 tiles are now culled 2023-07-14 01:33:59 +02:00