Sign in to follow this  

Drawing a door//window on wall

Recommended Posts

Hello, I got this code that draws a textured wall of a brick house glBegin(GL_QUADS); glTexCoord2f(0.0, 1.0); glVertex3f(x,y,z); // TL glTexCoord2f(0.0, 0.0); glVertex3f(x,y,z); // BL glTexCoord2f(1.0, 0.0); glVertex3f(x,y,z); // BR glTexCoord2f(1.0, 1.0); glVertex3f(x,y,z); // TR glEnd(); If I want to put a window or door in that wall defined by GL_QUADS, what woudl be the best way to do it. Another GL_QUADS,glScissor, or alpha testing? Thanks

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this