Updated OpenSubdiv logo in examples HUD

Reorganized the character cells used for UI
elements and removed elements that were not
being used in order to provide more space
for the logo image and logo text.

Updated to the new OpenSubdiv logo and updated
the HUD drawing code used to display the logo
character cells.
This commit is contained in:
David G Yu 2019-06-20 13:51:14 -07:00
parent fdd08b96f1
commit 64d366a145
4 changed files with 934 additions and 930 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.8 KiB

After

Width:  |  Height:  |  Size: 6.1 KiB

File diff suppressed because it is too large Load Diff

View File

@ -31,16 +31,16 @@
#define FONT_TEXTURE_ROWS 8
#define FONT_CHAR_WIDTH (FONT_TEXTURE_WIDTH/FONT_TEXTURE_COLUMNS)
#define FONT_CHAR_HEIGHT (FONT_TEXTURE_HEIGHT/FONT_TEXTURE_ROWS)
#define FONT_CHECK_BOX_OFF 0x3
#define FONT_CHECK_BOX_ON 0x4
#define FONT_RADIO_BUTTON_OFF 0x6
#define FONT_RADIO_BUTTON_ON 0x7
#define FONT_CHECK_BOX_OFF 0x2
#define FONT_CHECK_BOX_ON 0x3
#define FONT_RADIO_BUTTON_OFF 0x4
#define FONT_RADIO_BUTTON_ON 0x5
#define FONT_SLIDER_LEFT 0x10
#define FONT_SLIDER_MIDDLE 0x11
#define FONT_SLIDER_RIGHT 0x12
#define FONT_SLIDER_CURSOR 0x7c
#define FONT_ARROW_RIGHT 0x15
#define FONT_ARROW_DOWN 0x17
#define FONT_SLIDER_CURSOR 0x13
#define FONT_ARROW_RIGHT 0x14
#define FONT_ARROW_DOWN 0x15
extern unsigned char font_image[];

View File

@ -556,10 +556,15 @@ Hud::Rebuild(int width, int height, int framebufferWidth, int framebufferHeight)
}
}
drawString(_staticVboSource, _windowWidth-80, _windowHeight-48, .5, .5, .5,
"\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f");
drawString(_staticVboSource, _windowWidth-80, _windowHeight-32, .5, .5, .5,
"\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f");
// draw the character cells corresponding to the logo
drawString(_staticVboSource, _windowWidth-128, _windowHeight-44, .5, .5, .5,
"\x06\x07\x08\x09");
drawString(_staticVboSource, _windowWidth-128, _windowHeight-28, .5, .5, .5,
"\x16\x17\x18\x19");
drawString(_staticVboSource, _windowWidth-92, _windowHeight-36, .5, .5, .5,
"\x0a\x0b\x0c\x0d");
drawString(_staticVboSource, _windowWidth-58, _windowHeight-36, .5, .5, .5,
"\x1a\x1b\x1c\x1d\x1e\x1f");
}
bool