Using a clipping plane #3042
-
Hello everyone, I want to use a clipping plane to slice my scene, but I can't seem to understand how to implement this with raylib. From what I understand, I need to enable OpenGL's How do I use low-level OpenGL calls with raylib, or how do I perform fast clipping of an entire scene? Thanks for helping! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
What are you trying to do? Maybe what you need is just a |
Beta Was this translation helpful? Give feedback.
-
if you do this: #define GL_GLEXT_PROTOTYPES 1 you can call GL directly, BUT you need to remember that GL is a state machine, so you might need to restore some things so raylib can continue to render... I used this technique to let Nuklear GUI to render and still work with Raylib |
Beta Was this translation helpful? Give feedback.
if you do this:
#define GL_GLEXT_PROTOTYPES 1
#include <GL/glcorearb.h>
you can call GL directly, BUT you need to remember that GL is a state machine, so you might need to restore some things so raylib can continue to render...
I used this technique to let Nuklear GUI to render and still work with Raylib
https://www.youtube.com/watch?v=9aGWqa5pL1A
There is template code on my website using Nuklear (bedroomcoders.co.uk)