#Setting up OpenGL

44 messages · Page 1 of 1 (latest)

tawdry trail
#

Does anyone have a good tutorial for setting up Visual Studio to use OpenGL? Every tutorial i look at just seem all over the place, and don't actually say where the libs are stored

viscid sageBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.

exotic estuary
#

Yoo, could you tell me what exactly you wanna set up

exotic estuary
tawdry trail
#

So I started a few days ago trying to figure out how to use Vulkan. I got it downloaded and installed, and found the libs to set as dependancies in Visual Studio. Unfortunately, my pc doesn't support vulkan so i decided to try OpenGl instead. The official tut for setting up opengl just says 'every driver comes with it installed', but it doesnt say where the libs, or libraries to set as dependanies are

blazing zinc
#

OpenGL is not a library

tawdry trail
#

the l in gl stands for library

blazing zinc
#

nothing really

#

it's an API

#

there's a random dll in your windows installation with all the opengl stuff, you need a loader to load that for you and then you can use OpenGL for your dev stuff

tawdry trail
#

could you point me in the direction of how to do that

blazing zinc
#

you need:

  • Windowing library (SDL2, GLFW or just plain Windows stuff)
  • OpenGL loader
tawdry trail
#

ok

blazing zinc
#

put the version you want to load

#

be sure that your computer supports it

#

3.3 is a solid one

tawdry trail
#

I guess im just confused by the contrast to vulkan

#

!solved

viscid sageBOT
#

Thank you and let us know if you have any more questions!

This thread is now set to auto-hide after an hour of inactivity

blazing zinc
#

vulkan is a much lower level

tawdry trail
#

i guess i assumed OpenGl is older = lower level

blazing zinc
#

for comparison, the hello triangle with vulkan has ~1500 lines, while a regular opengl hello triangle has 150

tawdry trail
#

ew

blazing zinc
#

like reflection, water effects was embedded into your gpu and you only activated those

#

with lower level you can get better performance if you know what your'e doing

tawdry trail
#

i dont know what im doing

#

yet

blazing zinc
#

well, use modern OpenGL (>3.3 or atleast 2.1)

tawdry trail
#

ok

blazing zinc
#

do you have a windowing library already?

tawdry trail
#

ill either use glfw or do it myself

blazing zinc
#

oke

tawdry trail
#

ive messed around with winapi plenty

blazing zinc
#

this is a pretty good guide

#

C++ but it's very easy to adapt to C code

tawdry trail
#

oh this is the other one i was looking at

#

im using cpp

#

oh this is the c q&a

blazing zinc
#

ya

tawdry trail
#

whoops

blazing zinc
#

np