You are not logged in.
Pages: 1
Topic closed
Ok, this is probably the stupidest question I have ever asked:
I am interested in game development with C++ and OpenGL. However, I have no F-ing idea what I am supposed to download to get started. I searched both the Official Repos and the AUR and didn't find anything. Basically I want to get up and running with C++/OpenGL as easy as possible, but I have had trouble finding anything good. The page on the Wiki is completely useless on what to do.
Thanks
EDIT: I hope Multimedia and Games is the right section to put this in
Last edited by cesura (2010-05-04 23:42:26)
Offline
Google....
http://www.cprogramming.com/tutorial/op … ction.html - first hit...
Edit: this looks good. Just click on the text versions:
http://www.videotutorialsrock.com/index.php
Offline
Next page...
"Introduction to Windows Programming"
http://www.cprogramming.com/tutorial/op … mming.html
Last edited by cesura (2010-04-26 02:16:27)
Offline
Well... you never said you wanted to do it on Linux
Offline
Well... you never said you wanted to do it on Linux
Ahh, you got me there
Offline
I eased into it using Qt. Everything you need is in there. The nice thing is you can easily build Qt application infrastructure around a GL widget making learning, development and debugging easy.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
This:
http://www.videotutorialsrock.com/openg … x/text.php
states:
...the freeglut3-dev and mesa-common-dev packages provide these files
Those packages in Arch would be freeglut and mesa, as it seems to be installed. I'll do some test programs and see how it goes
I eased into it using Qt. Everything you need is in there. The nice thing is you can easily build Qt application infrastructure around a GL widget making learning, development and debugging easy.
I don't like Qt because of the license
Last edited by cesura (2010-04-26 02:29:15)
Offline
Ok, it seems to be installed, but trying to make the first example on the page (cube) returns:
g++ -Wall -o cube main.cpp imageloader.cpp -lglut
imageloader.cpp: In function 'Image* loadBMP(const char*)':
imageloader.cpp:141:2: warning: suggest parentheses around '&&' within '||'
/tmp/cc8UDlVv.o: In function `handleResize(int, int)':
main.cpp:(.text+0x183): undefined reference to `gluPerspective'
collect2: ld returned 1 exit status
make: *** [cube] Error 1
I tried the solutions in this thread to no avail:
http://bbs.archlinux.org/viewtopic.php?id=91281
Offline
Ok, it seems to be installed, but trying to make the first example on the page (cube) returns:
g++ -Wall -o cube main.cpp imageloader.cpp -lglut
So -lGLU did not work? Try -lGL as well.
Edit:
g++ -Wall -o basicshapes main.cpp -lGLU -lglut
Offline
Slightly not what you are asking about, but... http://nehe.gamedev.net/ has some pretty good tutorials if you have not found it yet.
Offline
Slightly not what you are asking about, but... http://nehe.gamedev.net/ has some pretty good tutorials if you have not found it yet.
Thanks! I'll take a look once I can get this working
EDIT: For now, I'll screw around in blender and see what I can do there
Last edited by cesura (2010-04-26 03:11:06)
Offline
There is a huge problem with OpenGL development right now.
The current OpenGL Version is 4.0, but you can only find tutorials/resources for 2.0. They changed huge parts of OpenGL in 2.1 so if you want to learn the current OpenGL, you have to wait a few more months until more documentation is available. Many libraries, like SDL and Qt don't support the current OpenGL version in their stable releases, only deprecated versions.
Offline
There is a huge problem with OpenGL development right now.
The current OpenGL Version is 4.0, but you can only find tutorials/resources for 2.0. They changed huge parts of OpenGL in 2.1 so if you want to learn the current OpenGL, you have to wait a few more months until more documentation is available. Many libraries, like SDL and Qt don't support the current OpenGL version in their stable releases, only deprecated versions.
using opengl 2 should be enough if one wants to learn opengl. As for libraries, the SDL version that supports opengl 3.x works fine for me, but if it should not work the stable version of freeglut works with opengl 3.
"As a former philosophy major, it disturbs me to think that things disappear when no one is looking at them, but that's exactly what happens in Python" - Mark Pilgrim
Offline
I keep receiving this error with the linker:
g++ -Wall -o basicshapes main.cpp -lglut
/tmp/ccKxkrEZ.o: In function `handleResize(int, int)':
main.cpp:(.text+0x96): undefined reference to `gluPerspective'
collect2: ld returned 1 exit status
make: *** [basicshapes] Error 1
Offline
Missing a linker flag. Add '-lGLU'
Success! Thank you
Offline
Hi, I'm trying to install OpenGL, too. Could you resume all the steps you needed? Is installing mesa and freeglut sufficient?
Offline
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Online
Pages: 1
Topic closed