initial
This commit is contained in:
40
common/vgui_surfacelib/vguifont.h
Normal file
40
common/vgui_surfacelib/vguifont.h
Normal file
@@ -0,0 +1,40 @@
|
||||
//========= Copyright 1996-2005, Valve Corporation, All rights reserved. ============//
|
||||
//
|
||||
// Purpose:
|
||||
//
|
||||
// $NoKeywords: $
|
||||
//=============================================================================//
|
||||
|
||||
#ifndef VGUIFONT_H
|
||||
#define VGUIFONT_H
|
||||
#ifdef _WIN32
|
||||
#pragma once
|
||||
#endif
|
||||
|
||||
// Structure passed to CWin32Font::GetCharsRGBA
|
||||
struct newChar_t
|
||||
{
|
||||
wchar_t wch; // A new character to generate texture data for
|
||||
int fontWide; // Texel width of the character
|
||||
int fontTall; // Texel height of the character
|
||||
int offset; // Offset into the buffer given to GetCharsRGBA
|
||||
};
|
||||
|
||||
#if defined( WIN32 )
|
||||
#include "Win32Font.h"
|
||||
typedef CWin32Font font_t;
|
||||
#elif defined(_PS3)
|
||||
#include "ps3font.h"
|
||||
typedef CPS3Font font_t;
|
||||
#elif defined(OSX)
|
||||
#include "osxfont.h"
|
||||
typedef COSXFont font_t;
|
||||
#elif defined(LINUX)
|
||||
#include "linuxfont.h"
|
||||
typedef CLinuxFont font_t;
|
||||
#else
|
||||
#error
|
||||
#endif
|
||||
|
||||
|
||||
#endif //VGUIFONT_H
|
||||
Reference in New Issue
Block a user