Just to let peeps know, version 1.2c is up (BambooBasic)
v1_2c
- Added b2dLoadTTF(), which loads a TrueType/OpenType font (.ttf/.otf) at a pixel size
you choose and hands back an normal font handle.
- Added b2dDrawQuadDepth - like b2dDrawQuad but each corner takes its own depth
(0..1), interpolated per-pixel by the GPU. This is what proper "3D in 2D" wants:
interpenetrating and steeply-tilted faces now resolve correctly per pixel, so
you can draw everything in any order with no backface culling. (b2dSetDepth gives
a whole quad ONE flat depth, which can't separate a solid's own overlapping
faces - that's what this fixes.) Desktop + Web; see the "3D in 2D" doc.
NOTE: feed perspective-correct corner depths (a + b/z), not raw view-z.
- New examples: "26 - 3D in 2D Stress" (rotating-cube benchmark) and
"27 - Quad Depth" (flat vs per-corner depth toggle), desktop + web.
- Big one: the runtime is now 2D across the board. The 3D (b3d*) engine has been
retired so every target (Windows, Web, Linux) sits on the same 2D runtime and
the same API. The old 3D runtime stays available but won't be updated.
- The handful of functions worth keeping have been renamed from b3d* to b2d*
(display setup, cls, flip, the frame loop, and the full-screen shaders).
- b2dDrawQuad - draw an arbitrary 4-point polygon (not just rectangles)
- b2dSetDepth - a proper per-pixel GPU depth buffer for 2D primitives, so you
can draw in any order and let the hardware sort out what's in front (see docs
+ the new "3D in 2D" tutorial)
- b2dSetClipRect / b2dClearClipRect - 2D scissor clipping.
- Indexed images now build a full mipmap chain (no more shimmer when scaled down).
- BGI canvases are now 2D-only (bgiCreateCanvas).
- Removed the 3D tools from the IDE's Tools menu.
- Fixes: palette-cycling text draw order, F1 detailed-help lookup, and web
key-repeat firing key-hits every frame.
And, all the shiny examples I've made are on the web here: Web Samples
I've absolutely done a load this weekend, pulled everything together, so, if I've missed anything, or something is "off", let me know... But... Worked out well me thinks... Now, Monday morning blues... Back to reality!
Dabzy