Commit Graph

12 Commits (63b8e636f391e80388a7d7a5077c16cf9847fd64)

Author SHA1 Message Date
Andrei Kortunov fc1f244627 Add missing initialization 10 months ago
Alexei Kotov 4df62d53db Fix OSG boilerplate macro for DebugCustomDraw 11 months ago
Alexei Kotov 6a96cdaa31 Make DebugDrawer a Node 11 months ago
Alexei Kotov 38ab09a52e Try to uncursify DebugDrawer scene representation 11 months ago
clang-format-bot ddb0522bbf
Apply clang-format to code base 2 years ago
florent.teppe 943198e325 Small changes 2 years ago
florent.teppe e811f7ed00 Simplified the data structures.
DebugCustomDraw owns the vector of drawcalls and the line geometry.
There are two DebugCustomDraw, so anything they own is double buffered.
Because DebugDrawer has a ref_ptr on the DebugCustomDraw, they live at least as long as DebugDrawer, making memory access from it safe.

removed redundent this
2 years ago
florent.teppe 565a08b95a crashfix on game exit 2 years ago
elsid 9f35f9b45b
Add missing include <array> 2 years ago
florent.teppe 43b0ae1ce7 all debug renders now use the same shader and it works
remove debug draw shader, now that debug and debugdraw serve the same function

remove debug draw code from actors to clean

replaced int uniforms with bool for better readability

clang format

cleanup, remove unused func, and mistake whitespace

fix namespace

added more colors

fixed missing whitespace
2 years ago
florent.teppe bd1bbc0ab8 removes mutex, and uses double buffering to avoid writing on a resource that will be read by the draw thread
changes when the buffers are reset -> at the end of the draw, because that's when we are certain the data isn't needed anymore

removed useless variable
fixed typo
include osg::vec3 instead of osg vec3f

compile linux

compile ?

applied clang format to the new files
2 years ago
florent.teppe 2a980ecb50 cleaned some code and fixed some naming issues
Moved debug draw to components, fixed some whitespace issues, added include guard

fixed uniform name, removed old files

Fixes some more whitespace weirdness
2 years ago