mirror of
https://github.com/DrBeef/JKXR.git
synced 2024-11-26 22:11:52 +00:00
53 lines
2.1 KiB
C
53 lines
2.1 KiB
C
/*
|
|
===========================================================================
|
|
Copyright (C) 2000 - 2013, Raven Software, Inc.
|
|
Copyright (C) 2001 - 2013, Activision, Inc.
|
|
Copyright (C) 2013 - 2015, OpenJK contributors
|
|
|
|
This file is part of the OpenJK source code.
|
|
|
|
OpenJK is free software; you can redistribute it and/or modify it
|
|
under the terms of the GNU General Public License version 2 as
|
|
published by the Free Software Foundation.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program; if not, see <http://www.gnu.org/licenses/>.
|
|
===========================================================================
|
|
*/
|
|
|
|
// Filename:- tr_font.h
|
|
//
|
|
// font support
|
|
|
|
// This file is shared in the single and multiplayer codebases, so be CAREFUL WHAT YOU ADD/CHANGE!!!!!
|
|
|
|
#pragma once
|
|
|
|
#include "../qcommon/q_shared.h"
|
|
|
|
void R_ShutdownFonts(void);
|
|
void R_InitFonts(void);
|
|
int RE_RegisterFont(const char *psName);
|
|
float RE_Font_StrLenPixelsNew( const char *psText, const int iFontHandle, const float fScale = 1.0f );
|
|
int RE_Font_StrLenPixels( const char *psText, const int iFontHandle, const float fScale = 1.0f );
|
|
int RE_Font_StrLenChars(const char *psText);
|
|
int RE_Font_HeightPixels(const int iFontHandle, const float fScale = 1.0f);
|
|
void RE_Font_DrawString(int ox, int oy, const char *psText, const float *rgba, const int iFontHandle, int iMaxPixelWidth, const float fScale = 1.0f);
|
|
|
|
// Dammit, I can't use this more elegant form because of !@#@!$%% VM code... (can't alter passed in ptrs, only contents of)
|
|
//
|
|
//unsigned int AnyLanguage_ReadCharFromString( const char **ppsText, qboolean *pbIsTrailingPunctuation = NULL);
|
|
//
|
|
// so instead we have to use this messier method...
|
|
//
|
|
unsigned int AnyLanguage_ReadCharFromString( const char *psText, int *piAdvanceCount, qboolean *pbIsTrailingPunctuation = NULL);
|
|
|
|
qboolean Language_IsAsian(void);
|
|
qboolean Language_UsesSpaces(void);
|
|
|
|
// end
|