Re: OpenGL, wxGLCanvas

AsmWarrior <[email protected]>
Newsgroups gmane.comp.lib.wxwindows.general
Message-ID <[email protected]>
Do you look at the wx samples, there are 3 or more samples of OpenGL code. 
But I guess they use legacy opengl pipeline method. (tell me if I'm wrong 
here)

You can see the screen shot images of those 3 samples ( just upload them as 
attachment).

Also, drawing objects are simple, and you can learn from any OpenGL 
tutorials. In-fact, I think wxGlCanvas is just a "canvas" or "window" you 
need to draw there. The import thing is how you supply the vertices, and 
glsl shaders, VBO, VAO to do that. 

I have sample projects for Code::Blocks here:

1,  all wx sample projects for code::blocks
https://github.com/asmwarrior/cb_projects_for_wxWidgets

2, a sample opengl + wxWidgets demo project, which use modern core profile 
method.
https://github.com/asmwarrior/wxWidgetsOpenGLBase

3, Learn OpenGL site 
 https://learnopengl.com/

There are more resources if you search on Google or github

Asmwarrior

On Friday, April 21, 2023 at 9:51:20 PM UTC+8 Rossano Paris wrote:

> I'd like to learn more regarding how to draw 2D objects such as lines, 
> shapes, texts, ecc... by using wxGlCanvas.
> Could someone please answare this post indicating books, on line 
> documentation, or other resources usefull for my scope?
>
> Thank in advance, regards
> Rossano
>

-- 
Please read https://www.wxwidgets.org/support/mlhowto.htm before posting.
--- 
You received this message because you are subscribed to the Google Groups "wx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/wx-users/7f2e27e9-2ca2-4ed0-b495-fc72236fd716n%40googlegroups.com.
2023-04-22 09 05 46.png (image/png, 47.3 KB) - not displayed
2023-04-22 09 05 08.png (image/png, 12 KB) - not displayed
2023-04-22 09 06 05.png (image/png, 7.6 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.