UI primitives

Published December 16, 2012
Advertisement
Working on UI rendering. Here's the outline of a button, and below it an image rendering. I don't have text working yet so the button looks a little funny without any label. Once I get text working, all of the other primitives should work fine, though.

gallery_98001_495_18447.png
Previous Entry iOS: Full Rendering
Next Entry Game UI render
1 likes 3 comments

Comments

Programming020195BRook
Keep up the excellent work!
December 17, 2012 06:20 AM
polyfrag
Is this OpenGL? I had to make my own GUI kit like this too. Keep up the good work.

You'll want to be able to tell how long glyphs are in text to be able to clip them appropriately.
December 17, 2012 04:46 PM
gdunbar
Yup, OpenGL. I actually already made the GUI library on Windows using D3DX, and now I'm porting it over to iOS. Luckily there isn't much to it other than drawing images, rectangles, and text.
December 18, 2012 01:14 PM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Profile
Author
Advertisement
Advertisement