Jump to content
  • Advertisement
Sign in to follow this  
Crank

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 )
{
	sbInit();
	Quad1.Draw ( 2.56, -2.56, 0.64, 0.64 );
	Quad1.TestLine();
	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 );
	sbLoop();
	MessageBox(hWnd, "Good Bye!.", "SushiGDK", NULL);
	KillFont();
	sbKill();
}
Thanks in advanced!

Share this post


Link to post
Share on other sites
Advertisement
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!