mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-30 13:21:04 +00:00
e2f5e8fe34
We'll need 'common' for something else.
59 lines
3 KiB
C
59 lines
3 KiB
C
//-------------------------------------------------------------------------
|
|
/*
|
|
Copyright (C) 2016 EDuke32 developers and contributors
|
|
|
|
This file is part of EDuke32.
|
|
|
|
EDuke32 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, write to the Free Software
|
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
*/
|
|
//-------------------------------------------------------------------------
|
|
|
|
#pragma once
|
|
|
|
#include "compat.h"
|
|
|
|
enum ScreenTextFlags_t {
|
|
TEXT_XRIGHT = 0x00000001,
|
|
TEXT_XCENTER = 0x00000002,
|
|
TEXT_YBOTTOM = 0x00000004,
|
|
TEXT_YCENTER = 0x00000008,
|
|
TEXT_INTERNALSPACE = 0x00000010,
|
|
TEXT_TILESPACE = 0x00000020,
|
|
TEXT_INTERNALLINE = 0x00000040,
|
|
TEXT_TILELINE = 0x00000080,
|
|
TEXT_XOFFSETZERO = 0x00000100,
|
|
TEXT_XJUSTIFY = 0x00000200,
|
|
TEXT_YOFFSETZERO = 0x00000400,
|
|
TEXT_YJUSTIFY = 0x00000800,
|
|
TEXT_LINEWRAP = 0x00001000,
|
|
TEXT_UPPERCASE = 0x00002000,
|
|
TEXT_INVERTCASE = 0x00004000,
|
|
TEXT_IGNOREESCAPE = 0x00008000,
|
|
TEXT_LITERALESCAPE = 0x00010000,
|
|
TEXT_BACKWARDS = 0x00020000,
|
|
TEXT_GAMETEXTNUMHACK = 0x00040000,
|
|
TEXT_DIGITALNUMBER = 0x00080000,
|
|
TEXT_BIGALPHANUM = 0x00100000,
|
|
TEXT_GRAYFONT = 0x00200000,
|
|
TEXT_RRMENUTEXTHACK = 0x00400000,
|
|
};
|
|
|
|
extern int32_t G_GetStringLineLength(const char *text, const char *end, int32_t iter);
|
|
extern int32_t G_GetStringNumLines(const char *text, const char *end, int32_t iter);
|
|
extern char* G_GetSubString(const char *text, const char *end, int32_t iter, int32_t length);
|
|
extern vec2_t G_ScreenTextSize(int32_t font, int32_t x, int32_t y, int32_t z, int32_t blockangle, const char *str, int32_t o, int32_t xspace, int32_t yline, int32_t xbetween, int32_t ybetween, int32_t f, int32_t x1, int32_t y1, int32_t x2, int32_t y2);
|
|
extern void G_AddCoordsFromRotation(vec2_t *coords, const vec2_t *unitDirection, int32_t magnitude);
|
|
extern vec2_t G_ScreenText(int32_t font, int32_t x, int32_t y, int32_t z, int32_t blockangle, int32_t charangle, const char *str, int32_t shade, int32_t pal, int32_t o, int32_t alpha, int32_t xspace, int32_t yline, int32_t xbetween, int32_t ybetween, int32_t f, int32_t x1, int32_t y1, int32_t x2, int32_t y2);
|
|
extern vec2_t G_ScreenTextShadow(int32_t sx, int32_t sy, int32_t font, int32_t x, int32_t y, int32_t z, int32_t blockangle, int32_t charangle, const char *str, int32_t shade, int32_t pal, int32_t o, int32_t alpha, int32_t xspace, int32_t yline, int32_t xbetween, int32_t ybetween, int32_t f, int32_t x1, int32_t y1, int32_t x2, int32_t y2);
|