Stack Exchange Network
Stack Exchange network consists of 181 Q&A communities including
Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack Exchange
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It only takes a minute to sign up.
Sign up to join this community
Anybody can ask a question
The best answers are voted up and rise to the top
8 years, 2 months ago
I'm currently learning opengl but it seems quite complicated so i considered using some library like sdl or allegro. I noticed that allegro has some built in functions to create and attach shaders.
But my question is: do my shaders "shade" everything i render with allegro or they are only functions to ease the work of loading shaders with opengl/directx?
Any help apreciated!
Mar 16, 2015 at 23:18
183 1 1 silver badge 10 10 bronze badges
They work in a similar, if not identical, way as in openGL/DirectX shaders... The only difference is that an
ALLEGRO_SHADER needs to contain both a fragment and vertex shader for rendering to work.
The way they work is that you attach a shader program to the device or display and then all drawings done in it will pass through the shader, so to achieve different effects you can detach the previous shader and then attach the new one on run-time as necessary.
Sep 17, 2015 at 3:10
380 3 3 silver badges 11 11 bronze badges
log in to answer this question.
Not the answer you're looking for? Browse other questions tagged
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our
Accept all cookies
Necessary cookies only