Render_Font.h
Go to the documentation of this file.
00001 /************************************************************************************
00002 
00003 Filename    :   Render_Font_h
00004 Content     :   Font data structure used by renderer
00005 Created     :   September, 2012
00006 Authors     :   Andrew Reisse
00007 
00008 Copyright   :   Copyright 2012 Oculus VR, Inc. All Rights reserved.
00009 
00010 Licensed under the Apache License, Version 2.0 (the "License");
00011 you may not use this file except in compliance with the License.
00012 You may obtain a copy of the License at
00013 
00014 http://www.apache.org/licenses/LICENSE-2.0
00015 
00016 Unless required by applicable law or agreed to in writing, software
00017 distributed under the License is distributed on an "AS IS" BASIS,
00018 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00019 See the License for the specific language governing permissions and
00020 limitations under the License.
00021 
00022 ************************************************************************************/
00023 
00024 #ifndef OVR_Render_Font_h
00025 #define OVR_Render_Font_h
00026 
00027 namespace OVR { namespace Render {
00028 
00029 class Fill;
00030 
00031 struct Font
00032 {
00033     struct Char
00034     {
00035         short x, y;       // offset
00036         short advance;
00037         float u1, v1, u2, v2;
00038     };
00039 
00040     int            lineheight, ascent, descent;
00041     const Char*    chars;
00042     const short**  kerning;
00043     int            twidth, theight;
00044     const
00045     unsigned char* tex;
00046     mutable Fill*  fill;
00047 };
00048 
00049 }}
00050 
00051 #endif


oculus_sdk
Author(s):
autogenerated on Mon Oct 6 2014 03:01:19