Go to advanced search

by Brian Beuken
Mon Mar 25, 2019 2:58 pm
Forum: OpenGLES
Topic: linking errors with eglGetProcAddress
Replies: 1
Views: 217

Re: linking errors with eglGetProcAddress

ah...
seems you need to include the libdl library

obvious when you see it....confusing as hell when you don't.
by Brian Beuken
Mon Mar 25, 2019 2:34 pm
Forum: OpenGLES
Topic: linking errors with eglGetProcAddress
Replies: 1
Views: 217

linking errors with eglGetProcAddress

Returning back to some extension coding. I seem to have hit a strange snag... I want to set up and test a GL_OES_mapbuffer extension, something I had issues with in the past... Im doing the normal methods.. PFNGLMAPBUFFEROESPROC glMapBuffer = NULL; glMapBuffer = (PFNGLMAPBUFFEROESPROC)eglGetProcAddr...
by Brian Beuken
Sun Mar 17, 2019 7:18 pm
Forum: C/C++
Topic: New to Raspberry, old to programming
Replies: 34
Views: 3341

Re: New to Raspberry, old to programming

??? you can compile on VisualGDB, on PC, or on target :D debug and profile if you want too :D
by Brian Beuken
Sun Mar 17, 2019 7:16 pm
Forum: OpenGLES
Topic: Depth buffer with OpenGL ES 1.1 on Raspberry Pi 3B+
Replies: 3
Views: 1187

Re: Depth buffer with OpenGL ES 1.1 on Raspberry Pi 3B+

Awesome, keep pluggin away
by Brian Beuken
Fri Mar 15, 2019 11:15 pm
Forum: C/C++
Topic: New to Raspberry, old to programming
Replies: 34
Views: 3341

Re: New to Raspberry, old to programming

time to try VisualGDB
by Brian Beuken
Fri Mar 15, 2019 5:45 pm
Forum: C/C++
Topic: New to Raspberry, old to programming
Replies: 34
Views: 3341

Re: New to Raspberry, old to programming

ah they know, I wrote a book where it is featured and I regularly pester them when things are going wrong and I need help, and get generous discounts when I need licences for coding classes. So its not as if they don't know I'm pushing the system. I don't mind though as long as more people take up c...
by Brian Beuken
Fri Mar 15, 2019 3:36 pm
Forum: C/C++
Topic: New to Raspberry, old to programming
Replies: 34
Views: 3341

Re: New to Raspberry, old to programming

lol I wish I were, I do promote it a lot, just because its really very good, and I want to encourage them to keep up the support and continue its improvement for Raspberry. I'm just very passionate about getting people coding in C/C++ and avoiding engines if they are serious about wanting to be game...
by Brian Beuken
Fri Mar 15, 2019 12:13 pm
Forum: OpenGLES
Topic: Depth buffer with OpenGL ES 1.1 on Raspberry Pi 3B+
Replies: 3
Views: 1187

Re: Depth buffer with OpenGL ES 1.1 on Raspberry Pi 3B+

setting the function to GL_NEVER means it will always fail, ie show everything, So you need one of the other functions for testing which are the same as used by stencil GL_NEVER GL_LESS GL_EQUAL GL_LEQUAL GL_GREATER GL_NOTEQUAL GL_GEQUAL GL_ALWAYS Try GL_LEQUAL But to actually get depth functions to...
by Brian Beuken
Fri Mar 15, 2019 11:12 am
Forum: C/C++
Topic: New to Raspberry, old to programming
Replies: 34
Views: 3341

Re: New to Raspberry, old to programming

And it looks like I may have found the answer to my question (I think I did, but am still downloading it, so cannot be 100% certain: http://gnutoolchains.com/raspberry/ by the same people that make VisualGDB, but this one seems free (it even includes a section oncompiling it all yourself, which wou...
by Brian Beuken
Fri Mar 15, 2019 11:02 am
Forum: C/C++
Topic: New to Raspberry, old to programming
Replies: 34
Views: 3341

Re: New to Raspberry, old to programming

A common situation on the Pi is someone wanting to experiment with physical computing, or simply learning Python or C. I am afraid I cannot see how it is 1000 times easier to spend days installing tool chains, cross compiler, cross debugger, etc in order to build a few lines of code (with no GUI ty...
by Brian Beuken
Fri Mar 15, 2019 1:59 am
Forum: C/C++
Topic: New to Raspberry, old to programming
Replies: 34
Views: 3341

Re: New to Raspberry, old to programming

as I say, www.VisualGDB.com you can use the toolchain to compile on the PC, or download the source to compile on the Pi, but debug on the PC, it works with the free community version of Visual Studio and is free for 30 days, and reasonably priced when the trial runs out. Setting up Arm GCC on PC tho...
by Brian Beuken
Thu Mar 14, 2019 11:34 pm
Forum: C/C++
Topic: New to Raspberry, old to programming
Replies: 34
Views: 3341

Re: New to Raspberry, old to programming

Given the ridiculous difference in purchase price, electrical power consumption, physical size etc, I find the Pi is astonishingly good. There is no question of it being "100 times worse" ... The Pi is awesome, I love Pi's and other SBC's I've got dozens of them, from Zero's to Pi3b+ and much more ...
by Brian Beuken
Thu Mar 14, 2019 11:11 pm
Forum: C/C++
Topic: New to Raspberry, old to programming
Replies: 34
Views: 3341

Re: New to Raspberry, old to programming

Cross compiling can be a little tricky to set up And are you going to tell us how to set it up? My main computer runs Windows 10x, I also have Cygwin on it, but I see nothing there that would let me cross compile anything for the Pi. I can easily compile Arduino code on Windows, but Raspberry Pi se...
by Brian Beuken
Thu Mar 14, 2019 6:51 pm
Forum: C/C++
Topic: New to Raspberry, old to programming
Replies: 34
Views: 3341

Re: New to Raspberry, old to programming

There's a very worrying trend in these discussions about finding the hardest way to do a simple thing. As a professional games developer and teacher in games programming, I'm utterly gobsmacked that people are advocating working on the Pi as a 1st choice.. No, hell no, cross platform dev, be that us...
by Brian Beuken
Thu Mar 14, 2019 8:57 am
Forum: C/C++
Topic: New to Raspberry, old to programming
Replies: 34
Views: 3341

Re: New to Raspberry, old to programming

I was going to chip in with my usual, use Visual Studio C++ for Linux, or Visual Studio with visualGDB plug in for almost painless compiling on your PC to your RPi. then I saw Windows XP...and I decided best not.. Is there no way you can upgrade to Wndows 8 or 10? It opens up a whole new world of to...
by Brian Beuken
Mon Mar 04, 2019 1:40 am
Forum: C/C++
Topic: Coding Games Tutorial in MagPi Help
Replies: 30
Views: 1488

Re: Coding Games Tutorial in MagPi Help

No Sorry, but no. That's not how C++ works. Its not really productive to enforce your working methods on a system designed around totally different working methods. I think it would be more productive for you to have some simple lessons on using Code::Blocks rather than heading down a blind developm...
by Brian Beuken
Sun Mar 03, 2019 4:59 pm
Forum: C/C++
Topic: Coding Games Tutorial in MagPi Help
Replies: 30
Views: 1488

Re: Coding Games Tutorial in MagPi Help

Sorry but what you're asking for really isn't viable, a program capable of doing the basics of even a simple game, needs several classes/functions/systems to work. Graphics, input, files, etc..its a lot of different things to keep track of. You "could" put it all in one file, but it would be an edit...
by Brian Beuken
Sat Mar 02, 2019 6:58 pm
Forum: C/C++
Topic: Coding Games Tutorial in MagPi Help
Replies: 30
Views: 1488

Re: Coding Games Tutorial in MagPi Help

:D C++ and other OOP languages work on the principles of collections of objects, called classes, which themselves make use of other classes, each is defined in its own file, the more classes you have the more files you have. Each class needs an h file and a CPP file to be viable in normal usage. Ask...
by Brian Beuken
Sat Mar 02, 2019 3:36 pm
Forum: C/C++
Topic: Coding Games Tutorial in MagPi Help
Replies: 30
Views: 1488

Re: Coding Games Tutorial in MagPi Help

If I get some time I'll try to port the demos to Geany, but at the moment I'm snowed under with work, so maybe someone else could do that? I can't stress enough though, that using the right tools makes the task much easier, Geany from my 1st look at it, isn't a project base IDE, its a file editor, d...
by Brian Beuken
Fri Mar 01, 2019 9:50 pm
Forum: C/C++
Topic: Coding Games Tutorial in MagPi Help
Replies: 30
Views: 1488

Re: Coding Games Tutorial in MagPi Help

Sorry I can't help more, as I say Geany isn't an IDE I use, its a bit too primitive. The articles were written for Code::Blocks which really is pretty straight foward, and you can load the projects and build and run them. If you must work with Geany, you can maybe review the way Code::Blocks include...
by Brian Beuken
Fri Mar 01, 2019 7:16 pm
Forum: C/C++
Topic: Coding Games Tutorial in MagPi Help
Replies: 30
Views: 1488

Re: Coding Games Tutorial in MagPi Help

hmm I'm quite pleased I don't use Geany it looks like a lot of effort to build a project

I listed the libs names and include directories in the previous reply, it looks like you'll have to enter them the same way you are doing pthreads.
by Brian Beuken
Fri Mar 01, 2019 2:20 pm
Forum: C/C++
Topic: Coding Games Tutorial in MagPi Help
Replies: 30
Views: 1488

Re: Coding Games Tutorial in MagPi Help

Now as to vol 66 (part 2): 1st, do I have to install a graphic lib or package (presumably openGL)? in case yes, how to? (I am using an old Pi2 with Stretch) (again the screenshots are incredible small by font size, and additionally blurred when enlarging the pictures, and it's hard to recognize any...
by Brian Beuken
Thu Feb 28, 2019 1:33 pm
Forum: C/C++
Topic: Coding Games Tutorial in MagPi Help
Replies: 30
Views: 1488

Re: Coding Games Tutorial in MagPi Help

No it does say in every article that the code is availlable at the magpi git hub, its where all code for all projects can be downloaded, but if you are not aware of how git hub works it might be confusing. Hope you're ok with it now, any problems feel free to ask here or on my support site at www.sc...
by Brian Beuken
Wed Feb 27, 2019 12:17 pm
Forum: C/C++
Topic: Coding Games Tutorial in MagPi Help
Replies: 30
Views: 1488

Re: Coding Games Tutorial in MagPi Help

All the source code is available to download from the MagPi github, you don't need to type in from the images

https://github.com/themagpimag
by Brian Beuken
Wed Feb 27, 2019 1:00 am
Forum: C/C++
Topic: Coding Games Tutorial in MagPi Help
Replies: 30
Views: 1488

Re: Coding Games Tutorial in MagPi Help

yes :D

Go to advanced search