Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request / question: is it possible to write openGL code in igeo ? #7

Open
ianisl opened this issue Dec 2, 2013 · 4 comments
Open

Comments

@ianisl
Copy link

ianisl commented Dec 2, 2013

Hi,

Is it possible to write openGL code in igeo ? The javadoc refers to a GL1 renderer :

'Processing Graphics using OpenGL to be put in size() method in Processing '

Is there an example of how to use it somewhere ?

thanks!

@sghr
Copy link
Owner

sghr commented Dec 11, 2013

Sorry for late reply.
Currently igeo uses OpenGL directly.
You can see gui/IGraphicsGL2.java, gui/ICurveGraphicGL.java, gui/IGLQuadStrip.java, etc, although the drawing process is scattered around.
This drawing mechanism would change later to catch up the changes in processing.

@ianisl
Copy link
Author

ianisl commented Dec 11, 2013

Thanks for your answer. I had noticed iGeo was actually using openGL, but I don't know how to modify the properties of a graphic object since iGeo uses its own layer of drawing instructions. For instance, is there currently a way to map a texture on a surface withing iGeo ?

cheers

@sghr
Copy link
Owner

sghr commented Dec 11, 2013

Texture is one of items in my todo list but I haven't touched texture part yet.
You could insert OpenGL texture code somewhere but it mgiht be simple.
You might need to make a custom graphic class (IGraphicObject) and a custom object (IObject).

@ianisl
Copy link
Author

ianisl commented Dec 11, 2013

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants