Gets wireframe backface visibility (1=both sides shown, 0=backfaces culled).
Takes no parameters.
Returns 1 if backfaces shown (both front and back triangles rendered), 0 if backfaces culled (only front-facing triangles rendered).
3D Graphics
Parameters & Returns
Parameters
This function takes no parameters.
Returns
Int
Quick Summary
Gets wireframe backface visibility (1=both sides shown, 0=backfaces culled).
Takes no parameters.
Returns 1 if backfaces shown (both front and back triangles rendered), 0 if backfaces culled (only front-facing triangles rendered).
Technical Exegesis...
Gets wireframe backface visibility (1=both sides shown, 0=backfaces culled). Takes no parameters. Returns 1 if backfaces shown (both front and back triangles rendered), 0 if backfaces culled (only front-facing triangles rendered). Queries g_wireframeShowBackfaces global flag. Read-only state query.
This function retrieves backface visibility mode.
Gets wireframe backface visibility (1=both sides shown, 0=backfaces culled). Takes no parameters. Returns 1 if backfaces shown (both front and back triangles rendered), 0 if backfaces culled (only front-facing triangles rendered). Queries g_wireframeShowBackfaces global flag. Read-only state query.
This function retrieves backface visibility mode. Return values: 1 (TRUE) if g_wireframeShowBackfaces = true (both sides shown, backface culling disabled), 0 (FALSE) if g_wireframeShowBackfaces = false (backfaces culled, only front-facing triangles). Use cases: (1) State inspection (check current culling mode for UI display), (2) Toggle implementation (toggle backface visibility while preserving wireframe mode), (3) Debug info (display backface culling status), (4) State restoration (save mode, change temporarily, restore saved mode), (5) Conditional logic (if b3dGetWireframeShowBackfaces() then expect double triangles). Common patterns: toggle backfaces backfaces = b3dGetWireframeShowBackfaces() toggle = 1 - backfaces then b3dSetWireframeMode(b3dGetWireframeMode(), toggle), check culling if b3dGetWireframeShowBackfaces() = 0 then print "Backface culling ON", save state oldBackfaces = b3dGetWireframeShowBackfaces() then restore b3dSetWireframeMode(oldMode, oldBackfaces). Typical usage: query before toggling backface visibility (implement hotkey toggle), display in UI for user feedback (show culling ON/OFF status), check for performance profiling (backface culling affects triangle count). State query only: function does not modify state (read-only access to g_wireframeShowBackfaces), safe to call multiple times (no side effects). Boolean conversion: g_wireframeShowBackfaces boolean converted to integer (true = 1, false = 0), consistent with BambooBasic conventions. Backface culling context: backface culling determines triangle visibility (front-facing = counter-clockwise winding, back-facing = clockwise), culling enabled (0) renders ~50% fewer triangles for closed meshes (performance boost), culling disabled (1) renders both sides (useful for open meshes like planes, billboards). Performance: O(1) operation (simple global variable read, instant). Validation: no validation needed (always returns valid 0 or 1). Related: b3dSetWireframeMode sets wireframe mode and backface visibility (sets both flags), b3dGetWireframeMode queries wireframe enabled state (companion query function).