Jump to content

Rotating Image and Text in 2D..


Chiblue
 Share

Recommended Posts

The ability to specify a Z axis rotation on the DrawImage and DrawText so that you can rotate the text or image around the Z axis... this would probably require the ability to specify were that axis needs to be, you can probably not assume the middle or the origin.

 

I just needed to do this and had to build the function using raw OpenGL commands, which to be honest was a pain in butt.... and given that the only additional code within the function would require the following OpenGL it would be relative simple to implement..

 

glTranslatef - set the X/Y rotational origin

glRotatef - rotate around the origin

glTranslatef - set the X/Y origin back to it's original position...

  • Upvote 1

If it's not Tactical realism then you are just playing..

Link to comment
Share on other sites

to build the function using raw OpenGL commands, which to be honest was a pain in butt

 

 

Yes it is, some basic functionality additions to the Draw commands would be a welcome feature. Gets my vote Chiblue.

AMD Bulldozer FX-4 Quad Core 4100 Black Edition

2 x 4GB DDR3 1333Mhz Memory

Gigabyte GeForce GTX 550 Ti OC 1024MB GDDR5

Windows 7 Home 64 bit

 

BlitzMax 1.50 • Lua 5.1 MaxGUI 1.41 • UU3D Pro • MessiahStudio Pro • Silo Pro

3D Coat • ShaderMap Pro • Hexagon 2 • Photoshop, Gimp & Paint.NET

 

LE 2.5/3.4 • Skyline UE4 • CE3 SDK • Unity 5 • Esenthel Engine 2.0

 

Marleys Ghost's YouTube Channel Marleys Ghost's Blog

 

"I used to be alive like you .... then I took an arrow to the head"

Link to comment
Share on other sites

  • 4 weeks later...

I allready have this stuff done in my own engine. The commands are exactly like blitzmax.

I Josh want's I would glady donate some code. It's actually quite simple.

ImagesCollide and ImagesCollide2(from blitzmax ) would also help. I could donate that code as well.

I create the game you play. I create the rulles you will obey.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...