Relative Content

Tag Archive for c++openglgraphics

How do i make OpenGL on a 1px by 1px scale on C++

I am currently trying to create a 2D engine in C++ using OpenGL for fun (I have a special definition of fun). I suspect that the solution I am using to draw my assets is broken because everything worked fine on a normal OpenGL scale, but when I started making changes, everything went wrong. Additionally, when I tried to use FBOs, things started to break down further. Initially, I thought the coordinate system might be at fault, this is why i tried to change it

Need help in understanding glBindTextureUnit

I have a Cube shape with wood and metal texture applied to it now i create a second shape that is plane also get the metal texture that i used for specular also get applied to it, please help me understand why is it happening, why cant i get the normal texture on the new shape without specular being added to it. by my understanding its the shader material value that i added need adjusting… i am just guessing as of now please guide me.