Jump to content
  • Advertisement
Sign in to follow this  
rewolfer

OpenGL shader extensions etc.

This topic is 3689 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hey... so i have used shaders before in linux, but never really paid much attention to the extension loading etc, and support on different computers. Today i tried writing a shader in windows. I'm using SDL for windowing, and glew for extension handling... So on my PC it supports GL_VERSION_2_1 and NV_vertex_program3 etc. very nice.... but on my laptop only GL_VERSION_1_5 is supported. the laptop has a Mobility Radeon x700, which i thought would support 2.0. Anyways because it only supports 1.5, shader functions aren't really available unless I use ARB ext's like CreateShaderObjectARB etc. My question is this: on my pc, would it make any difference if i used glCreateShader or glCreateShaderObjectARB (and other function pairs like this)? How do people usually write good portable opengl apps with regard to how version support limits extensions? Because i will just go with the ARB functions now so that it'll work on my pc and laptop, if there is no difference.

Share this post


Link to post
Share on other sites
Advertisement
Everything that is Radeon 9500 and above supports 2.0 or 2.1
The entire X series also and that includes the mobility chipset.
You can use the ARB functions but they are frozen to GLSL 1.00, although I haven't tested them to see they accept GLSL 1.10 and 1.20 code.

Quote:
How do people usually write good portable opengl apps with regard to how version support limits extensions?


You either use extensions and extensions alone or you check to see what the GL version is. Of course, there are things that aren't core features like S3 compression, anisotropic filtering, swap control and many others.

Share this post


Link to post
Share on other sites
thanks very much..

ya something's not working correctly... seriously need to get to the opengl 2.0 functionality... must be a driver prob, but i've downloaded the latest from the Acer (have a Acer Travelmate 4101wmi) but to no avail.
Currently, with the ARB extensions, it "runs" my shader, but its extremely slow, so im assuming its resorted to SW rendering seeing the only thing the shader does is gl_FragColor = vec4(1.0, .0, .0, 1.0);

not sure what i'll do to fix this, but i'll just have to keep researching and fiddling. thanks for the help man!

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!