source-engine/common/vgui_surfacelib/vguifont.h
Er2 53bd92f7a8
BSD: Add support (#140)
* BSD: Add support

* BSD: other fixes

There is still a bug when vgui haven't got text, maybe because of resources.

Also there is bug where when trying to start new game caption names shows wrong.

* BSD: Debugging

* BSD: modify preprocessor and fix windows

* BSD: Remove debugging and fix labels in gameui

* BSD: Remove disabling some DX9 commands

* BSD: Remove -g flag
2022-11-24 22:04:29 +03:00

35 lines
744 B
C

//========= Copyright 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
};
#ifdef WIN32
#include "Win32Font.h"
typedef CWin32Font font_t;
#elif defined(POSIX)
#include "linuxfont.h"
typedef CLinuxFont font_t;
#else
#error
#endif
#endif //VGUIFONT_H