Jump to content
  • Advertisement
Sign in to follow this  

OpenGL Repositioning Quads

This topic is 3416 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

I am creating a GDK based on OpenGL and I made a function to draw a shape to the screen.
Quad1.Draw ( X, Y, Width, Height );
But I want to make a function to reposition that quad later. But it doesn't seem to work. Also lets say, I make a quad and a line. Since the quad is set to rotate, the line will also.. How do I make it draw each object as a separate entity? Here is a little example of a program written with my GDK.
#include "SushiGDK.h"
#include "Core.h"

sbQuads Quad1;
sbQuads Text;

void sbScene( void )
	Quad1.Draw ( 2.56, -2.56, 0.64, 0.64 );
	Text.Text( "SushiGDK, Line and Poly AAx4!" );

int WINAPI WinMain ( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow )
	MessageBox(hWnd, "Testing SushiGDK start up processes. Press OK to continue.", "SushiGDK", NULL);
	sbCreateWindow ( WindowTitle, WindowX, WindowY, ColorDepth, FullScreen );
	MessageBox(hWnd, "Good Bye!.", "SushiGDK", NULL);
Thanks in advanced!

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!