Jump to content

April 2017 »

S M T W T F S
      1
2345678
9101112131415
16171819202122
23 242526272829
30      
- - - - -

UI primitives



4: Adsense

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.

Posted Image

Dec 17 2012 12:20 AM
Keep up the excellent work!
Dec 17 2012 10:46 AM
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.
Dec 18 2012 07:14 AM
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.

Note: GameDev.net moderates comments.