From: Matthias Braun Date: Tue, 17 May 2005 15:01:13 +0000 (+0000) Subject: improved utf-8 code to correctly decode utf-8 byte sequences and not to rely on endle... X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=403d6c74ccdac66ffa49a363edaf22c8374c56c5;p=supertux.git improved utf-8 code to correctly decode utf-8 byte sequences and not to rely on endless if-else blocks, also adds a non-tested flip_level command to the scripting api SVN-Revision: 2502 --- diff --git a/src/game_session.h b/src/game_session.h index 59023b36e..a1ed467b1 100644 --- a/src/game_session.h +++ b/src/game_session.h @@ -86,6 +86,9 @@ public: Sector* get_current_sector() { return currentsector; } + Level* get_current_level() + { return level; } + void start_sequence(const std::string& sequencename); /// called by JoystickKeyboardController after an ascii key has been pressed void try_cheats(); diff --git a/src/scripting/level.cpp b/src/scripting/level.cpp index 9b6749fbf..ff828b41c 100644 --- a/src/scripting/level.cpp +++ b/src/scripting/level.cpp @@ -4,6 +4,7 @@ #include #include "level.h" #include "game_session.h" +#include "flip_level_transformer.h" namespace Scripting { @@ -24,4 +25,11 @@ namespace Scripting { GameSession::current()->respawn(sector, spawnpoint); } + + void + Level::flip_vertically() + { + FlipLevelTransformer flip_transformer; + flip_transformer.transform(GameSession::current()->get_current_level()); + } } diff --git a/src/scripting/level.h b/src/scripting/level.h index e0217424d..aae3faf5d 100644 --- a/src/scripting/level.h +++ b/src/scripting/level.h @@ -16,6 +16,8 @@ public: void finish(); /** spawn tux at specified sector and spawnpoint */ void spawn(const std::string& sector, const std::string& spawnpoint); + /** Flip level vertically */ + void flip_vertically(); }; } diff --git a/src/scripting/wrapper.cpp b/src/scripting/wrapper.cpp index f675e996c..ed511ffe4 100644 --- a/src/scripting/wrapper.cpp +++ b/src/scripting/wrapper.cpp @@ -127,6 +127,16 @@ static int Level_spawn_wrapper(HSQUIRRELVM v) return 0; } +static int Level_flip_vertically_wrapper(HSQUIRRELVM v) +{ + Scripting::Level* _this; + sq_getinstanceup(v, 1, (SQUserPointer*) &_this, 0); + + _this->flip_vertically(); + + return 0; +} + static int ScriptedObject_set_animation_wrapper(HSQUIRRELVM v) { Scripting::ScriptedObject* _this; @@ -408,6 +418,7 @@ static WrappedFunction supertux_Camera_methods[] = { static WrappedFunction supertux_Level_methods[] = { { "finish", &Level_finish_wrapper }, { "spawn", &Level_spawn_wrapper }, + { "flip_vertically", &Level_flip_vertically_wrapper }, }; static WrappedFunction supertux_ScriptedObject_methods[] = { diff --git a/src/video/font.cpp b/src/video/font.cpp index 90a319e5b..cc45c1c62 100644 --- a/src/video/font.cpp +++ b/src/video/font.cpp @@ -44,9 +44,7 @@ Font::Font(const std::string& file, FontType ntype, int nw, int nh, first_char = 48; break; } - last_char = first_char + (chars->h / h) * 16; - if(last_char > 127 && last_char < 160) // we have left out some control chars at 128-159 - last_char += 32; + char_count = (chars->h / h) * 16; // Load shadow font. if(shadowsize > 0) { @@ -165,77 +163,93 @@ Font::draw_text(const std::string& text, const Vector& pos, draw_chars(chars, text, pos, drawing_effect, alpha); } +/** decoding of a byte stream to a single unicode character. + * This should be correct for well formed utf-8 sequences but doesn't check for + * all forms of illegal sequences. + * (see unicode standard section 3.10 table 3-5 and 3-6 for details) + */ +uint32_t decode_utf8(const std::string& text, size_t& p) +{ + // 1 byte sequence + uint32_t c = (unsigned char) text[p++]; + if(c <= 0x7F) { + return c; + } + + // 2 byte sequence + if(p >= text.size()) + throw std::runtime_error("Malformed utf-8 sequence"); + uint32_t c2 = (unsigned char) text[p++]; + if(c <= 0xDF) { + if(c < 0xC2) + throw std::runtime_error("Malformed utf-8 sequence"); + return (c & 0x1F) << 6 | (c2 & 0x3F); + } + + // 3 byte sequence + if(p >= text.size()) + throw std::runtime_error("Malformed utf-8 sequence"); + uint32_t c3 = (unsigned char) text[p++]; + if(c <= 0xEF) { + return (c & 0x0F) << 12 | (c2 & 0x3F) << 6 | (c3 & 0x3F); + } + + // 4 byte sequence + if(p >= text.size()) + throw std::runtime_error("Malformed utf-8 sequence"); + uint32_t c4 = (unsigned char) text[p++]; + if(c <= 0xF4) { + return (c & 0x07) << 18 | (c2 & 0x3F) << 12 | (c3 & 0x3F) << 6 + | (c4 & 0x3F); + } + + throw std::runtime_error("Malformed utf-8 sequence"); +} + void Font::draw_chars(Surface* pchars, const std::string& text, const Vector& pos, uint32_t drawing_effect, uint8_t alpha) const { SurfaceImpl* impl = pchars->impl; - int utf8suppl = 0; Vector p = pos; - for(size_t i = 0; i < text.size(); ++i) { - int c = (unsigned char) text[i]; - int d = 0; - if(c > 127 && c < 160) // correct for the 32 controlchars at 128-159 - c -= 32; - if (c > 0xC2 && text.size() == i+1) // string ends with control char - { - std::cerr << "String \"" << text << "\" is malformed.\n"; - return; - } - else - d = (unsigned char) text[i+1]; - - if (c == 0xC3 && d < 160) // first-byte identifier of U0080 ("C1 Control Characters and Latin-1 Supplement") - { // iso-8859-1 equiv character is capital A with tilde above, signified as "C3 83" in utf-8 - utf8suppl = 64; - continue; - } - else if (c == 0xC3 && d >= 160) // U0080 pt. 2 - { - utf8suppl = 32; - continue; - } - else if (c == 0xC4 && d < 160) - { - utf8suppl = 128; - continue; - } - else if (c == 0xC4 && d >= 160) - { - utf8suppl = 96; - continue; - } - else if (c == 0xC5 && d < 160) // first-byte identifier of U0100 ("Latin Extended-A") - { // iso-8859-1 equiv character is capital A with ring above, signified as "C3 85" in utf-8 - utf8suppl = 192; - continue; - } - else if (c == 0xC5 && d >= 160) // first-byte identifier of U0100 ("Latin Extended-A") - { // iso-8859-1 equiv character is capital A with ring above, signified as "C3 85" in utf-8 - utf8suppl = 160; - continue; - } - // insert more clauses here once somebody will need them + size_t i = 0; + while(i < text.size()) { + uint32_t c = decode_utf8(text, i); + ssize_t font_index; // a non-printable character? - if(c == '\n') { + if(c == '\n') { p.x = pos.x; p.y += h + 2; continue; } - if(c == ' ' || c < first_char || c > last_char) { + if(c == ' ') { p.x += w; continue; } - c += utf8suppl; - utf8suppl = 0; - - int index = c - first_char; - int source_x = (index % 16) * w; - int source_y = (index / 16) * h; + font_index = c - first_char; + // we don't have the control chars 0x80-0xa0 in the font + if(c >= 0x80) { + font_index -= 32; + if(c <= 0xa0) { +#ifdef DEBUG + std::cout << "Unsupported utf-8 character '" << c << "' found\n"; +#endif + font_index = 0; + } + } + + if(font_index < 0 || font_index >= (ssize_t) char_count) { +#ifdef DEBUG + std::cout << "Unsupported utf-8 character found\n"; +#endif + font_index = 0; + } + int source_x = (font_index % 16) * w; + int source_y = (font_index / 16) * h; impl->draw_part(source_x, source_y, p.x, p.y, w, h, alpha, drawing_effect); p.x += w; } diff --git a/src/video/font.h b/src/video/font.h index 9d2db0ef8..3f53c3300 100644 --- a/src/video/font.h +++ b/src/video/font.h @@ -51,10 +51,7 @@ public: */ float get_text_width(const std::string& text) const; - /** returns the height of a given text. (Note that I won't add a normal - * get_width function here, as we might switch to variable width fonts in the - * future.) - * Supports breaklines. + /** returns the height of a given text. This function supports breaklines. * In case, you are positive that your text doesn't use break lines, you can * just use get_height(). */ @@ -85,9 +82,9 @@ private: int shadowsize; /// the number of the first character that is represented in the font - int first_char; + uint32_t first_char; /// the number of the last character that is represented in the font - int last_char; + uint32_t char_count; }; #endif diff --git a/src/video/semantic.cache b/src/video/semantic.cache deleted file mode 100644 index 3b1f439fe..000000000 --- a/src/video/semantic.cache +++ /dev/null @@ -1,62 +0,0 @@ -;; Object semantic.cache -;; SEMANTICDB Tags save file -(semanticdb-project-database "semantic.cache" - :file "semantic.cache" - :tables (list - (semanticdb-table "drawing_context.h" - :file "drawing_context.h" - :pointmax 5111 - :major-mode 'c++-mode - :tokens '(("SUPERTUX_DRAWINGCONTEXT_H" variable nil nil ((const . t)) nil nil [915 951]) ("vector" include t nil nil [950 967]) ("string" include t nil nil [968 985]) ("stdint.h" include t nil nil [986 1005]) ("SDL.h" include t nil nil [1007 1023]) ("stdint.h" include t nil nil [1024 1043]) ("math/vector.h" include nil nil nil [1045 1069]) ("video/screen.h" include nil nil nil [1070 1095]) ("video/surface.h" include nil nil nil [1096 1122]) ("video/font.h" include nil nil nil [1123 1146]) ("Surface" type "class" nil nil nil nil nil [1148 1162]) ("" type "enum" (("LAYER_BACKGROUND0" variable "int" (1239 1243) ((const . t)) nil ((reparse-symbol . enumsubparts)) [1219 1243]) ("LAYER_BACKGROUND1" variable "int" (1267 1271) ((const . t)) nil ((reparse-symbol . enumsubparts)) [1247 1271]) ("LAYER_BACKGROUNDTILES" variable "int" (1299 1303) ((const . t)) nil ((reparse-symbol . enumsubparts)) [1275 1303]) ("LAYER_TILES" variable "int" (1321 1322) ((const . t)) nil ((reparse-symbol . enumsubparts)) [1307 1322]) ("LAYER_OBJECTS" variable "int" (1342 1345) ((const . t)) nil ((reparse-symbol . enumsubparts)) [1326 1345]) ("LAYER_FOREGROUNDTILES" variable "int" (1373 1376) ((const . t)) nil ((reparse-symbol . enumsubparts)) [1349 1376]) ("LAYER_FOREGROUND0" variable "int" (1400 1403) ((const . t)) nil ((reparse-symbol . enumsubparts)) [1380 1403]) ("LAYER_FOREGROUND1" variable "int" (1427 1430) ((const . t)) nil ((reparse-symbol . enumsubparts)) [1407 1430]) ("LAYER_GUI" variable "int" (1454 1457) ((const . t)) nil ((reparse-symbol . enumsubparts)) [1434 1457])) nil nil nil nil [1210 1460]) ("DrawingContext" type "class" (("public" label ((reparse-symbol . classsubparts)) [1660 1667]) ("DrawingContext" function ("DrawingContext" type "class") (("targetsurface" variable ("SDL_Surface" type "class") "0" ((pointer . 1)) nil nil [1685 1715])) ((constructor . t) (prototype . t)) nil ((reparse-symbol . classsubparts)) [1670 1717]) ("DrawingContext" function "void" nil ((destructor . t) (prototype . t)) nil ((reparse-symbol . classsubparts)) [1720 1738]) ("draw_surface" function ("void") (("surface" variable ("Surface" type "class") nil ((const . t) (pointer . 1)) nil nil [1828 1851]) ("position" variable ("Vector" type "class") nil ((const . t)) nil nil [1852 1875]) ("layer" variable "int" nil nil nil nil [1896 1906])) ((prototype . t)) nil ((reparse-symbol . classsubparts)) [1810 1907]) ("draw_surface_part" function ("void") (("surface" variable ("Surface" type "class") nil ((const . t) (pointer . 1)) nil nil [1985 2008]) ("source" variable ("Vector" type "class") nil ((const . t)) nil nil [2009 2030]) ("size" variable ("Vector" type "class") nil ((const . t)) nil nil [2056 2075]) ("dest" variable ("Vector" type "class") nil ((const . t)) nil nil [2076 2095]) ("layer" variable "int" nil nil nil nil [2096 2106])) ((prototype . t)) nil ((reparse-symbol . classsubparts)) [1962 2107]) ("draw_text" function ("void") (("font" variable ("Font" type "class") nil ((const . t) (pointer . 1)) nil nil [2145 2162]) ("text" variable ("std::string" type "class") nil ((const . t)) nil nil [2163 2187]) ("position" variable ("Vector" type "class") nil ((const . t)) nil nil [2205 2228]) ("alignment" variable ("FontAlignment" type "class") nil nil nil nil [2229 2253]) ("layer" variable "int" nil nil nil nil [2254 2264])) ((prototype . t)) nil ((reparse-symbol . classsubparts)) [2130 2265]) ("draw_center_text" function ("void") (("font" variable ("Font" type "class") nil ((const . t) (pointer . 1)) nil nil [2461 2478]) ("text" variable ("std::string" type "class") nil ((const . t)) nil nil [2479 2503]) ("position" variable ("Vector" type "class") nil ((const . t)) nil nil [2528 2551]) ("layer" variable "int" nil nil nil nil [2552 2562])) ((prototype . t)) nil ((reparse-symbol . classsubparts)) [2439 2563]) ("draw_gradient" function ("void") (("from" variable ("Color" type "class") nil nil nil nil [2639 2650]) ("to" variable ("Color" type "class") nil nil nil nil [2651 2660]) ("layer" variable "int" nil nil nil nil [2661 2671])) ((prototype . t)) nil ((reparse-symbol . classsubparts)) [2620 2672]) ("draw_filled_rect" function ("void") (("topleft" variable ("Vector" type "class") nil ((const . t)) nil nil [2722 2744]) ("size" variable ("Vector" type "class") nil ((const . t)) nil nil [2745 2764]) ("color" variable ("Color" type "class") nil nil nil nil [2789 2801]) ("layer" variable "int" nil nil nil nil [2802 2812])) ((prototype . t)) nil ((reparse-symbol . classsubparts)) [2700 2813]) ("do_drawing" function ("void") nil ((prototype . t)) nil ((reparse-symbol . classsubparts)) [2886 2904]) ("get_translation" function ("Vector" type "class") nil ((const . t)) nil ((reparse-symbol . classsubparts)) [2910 2985]) ("set_translation" function ("void") (("newtranslation" variable ("Vector" type "class") nil ((const . t)) nil nil [3012 3041])) nil nil ((reparse-symbol . classsubparts)) [2991 3089]) ("push_transform" function ("void") nil ((prototype . t)) nil ((reparse-symbol . classsubparts)) [3095 3117]) ("pop_transform" function ("void") nil ((prototype . t)) nil ((reparse-symbol . classsubparts)) [3120 3141]) ("set_drawing_effect" function ("void") (("effect" variable ("uint32_t" type "class") nil nil nil nil [3248 3264])) ((prototype . t)) nil ((reparse-symbol . classsubparts)) [3224 3265]) ("get_drawing_effect" function ("uint32_t" type "class") nil ((prototype . t)) nil ((reparse-symbol . classsubparts)) [3314 3350]) ("set_zooming" function ("void") (("zoom" variable "float" nil nil nil nil [3413 3424])) ((prototype . t)) nil ((reparse-symbol . classsubparts)) [3396 3425]) ("set_alpha" function ("void") (("alpha" variable ("uint8_t" type "class") nil nil nil nil [3487 3501])) ((prototype . t)) nil ((reparse-symbol . classsubparts)) [3472 3502]) ("get_alpha" function ("uint8_t" type "class") nil ((prototype . t)) nil ((reparse-symbol . classsubparts)) [3538 3564]) ("private" label ((reparse-symbol . classsubparts)) [3568 3576]) ("Transform" type "class" (("public" label ((reparse-symbol . classsubparts)) [3601 3608]) ("translation" variable ("Vector" type "class") nil nil nil nil [3613 3632]) ("drawing_effect" variable ("uint32_t" type "class") nil nil nil nil [3637 3661]) ("zoom" variable "float" nil nil nil nil [3666 3677]) ("alpha" variable ("uint8_t" type "class") nil nil nil nil [3682 3696]) ("Transform" function ("Transform" type "class") nil ((constructor . t)) nil ((reparse-symbol . classsubparts)) [3706 3782]) ("apply" function ("Vector" type "class") (("v" variable ("Vector" type "class") nil ((const . t)) nil nil [3805 3821])) nil nil ((reparse-symbol . classsubparts)) [3792 3869])) nil nil nil ((reparse-symbol . classsubparts)) [3579 3874]) ("transformstack" variable ("std::vector" type "class") nil nil nil nil [3906 3944]) ("transform" variable ("Transform" type "class") nil nil nil nil [3984 4004]) ("RequestType" type "enum" (("SURFACE" variable "int" nil ((const . t)) nil ((reparse-symbol . enumsubparts)) [4035 4043]) ("SURFACE_PART" variable "int" nil ((const . t)) nil ((reparse-symbol . enumsubparts)) [4044 4057]) ("TEXT" variable "int" nil ((const . t)) nil ((reparse-symbol . enumsubparts)) [4058 4063]) ("GRADIENT" variable "int" nil ((const . t)) nil ((reparse-symbol . enumsubparts)) [4064 4073]) ("FILLRECT" variable "int" nil ((const . t)) nil ((reparse-symbol . enumsubparts)) [4074 4086])) nil nil nil ((reparse-symbol . classsubparts)) [4010 4087]) ("SurfacePartRequest" type "struct" (("surface" variable ("Surface" type "class") nil ((const . t) (pointer . 1)) nil nil [4127 4150]) ("source" variable ("Vector" type "class") nil nil nil nil [4155 4175]) ("size" variable ("Vector" type "class") nil nil nil nil [4155 4175])) nil nil nil ((reparse-symbol . classsubparts)) [4093 4180]) ("TextRequest" type "struct" (("font" variable ("Font" type "class") nil ((const . t) (pointer . 1)) nil nil [4213 4230]) ("text" variable ("std::string" type "class") nil nil nil nil [4235 4252]) ("alignment" variable ("FontAlignment" type "class") nil nil nil nil [4257 4281])) nil nil nil ((reparse-symbol . classsubparts)) [4186 4286]) ("GradientRequest" type "struct" (("top" variable ("Color" type "class") nil nil nil nil [4323 4341]) ("bottom" variable ("Color" type "class") nil nil nil nil [4323 4341]) ("size" variable ("Vector" type "class") nil nil nil nil [4346 4358])) nil nil nil ((reparse-symbol . classsubparts)) [4292 4363]) ("FillRectRequest" type "struct" (("color" variable ("Color" type "class") nil nil nil nil [4400 4412]) ("size" variable ("Vector" type "class") nil nil nil nil [4417 4429])) nil nil nil ((reparse-symbol . classsubparts)) [4369 4434]) ("DrawingRequest" type "struct" (("type" variable ("RequestType" type "class") nil nil nil nil [4470 4487]) ("pos" variable ("Vector" type "class") nil nil nil nil [4492 4503]) ("layer" variable "int" nil nil nil nil [4529 4539]) ("drawing_effect" variable ("uint32_t" type "class") nil nil nil nil [4544 4568]) ("zoom" variable "float" nil nil nil nil [4573 4584]) ("alpha" variable "int" nil nil nil nil [4589 4599]) ("request_data" variable "void" nil ((pointer . 1)) nil nil [4609 4628]) ("<" function ("bool" type "class") (("other" variable ("DrawingRequest" type "class") nil ((const . t)) nil nil [4653 4681])) nil nil ((reparse-symbol . classsubparts)) [4638 4733])) nil nil nil ((reparse-symbol . classsubparts)) [4440 4738]) ("draw_surface_part" function ("void") (("request" variable ("DrawingRequest" type "class") nil nil nil nil [4767 4791])) ((prototype . t)) nil ((reparse-symbol . classsubparts)) [4744 4792]) ("draw_text" function ("void") (("request" variable ("DrawingRequest" type "class") nil nil nil nil [4810 4834])) ((prototype . t)) nil ((reparse-symbol . classsubparts)) [4795 4835]) ("draw_text_center" function ("void") (("request" variable ("DrawingRequest" type "class") nil nil nil nil [4860 4884])) ((prototype . t)) nil ((reparse-symbol . classsubparts)) [4838 4885]) ("draw_gradient" function ("void") (("request" variable ("DrawingRequest" type "class") nil nil nil nil [4907 4931])) ((prototype . t)) nil ((reparse-symbol . classsubparts)) [4888 4932]) ("draw_filled_rect" function ("void") (("request" variable ("DrawingRequest" type "class") nil nil nil nil [4957 4981])) ((prototype . t)) nil ((reparse-symbol . classsubparts)) [4935 4982]) ("DrawingRequests" type "typedef" nil ("std::vector") ((typedef "std::vector" type "class")) nil nil [4988 5040]) ("drawingrequests" variable ("DrawingRequests" type "class") nil nil nil nil [5043 5075]) ("screen" variable ("SDL_Surface" type "class") nil ((pointer . 1)) nil nil [5079 5099])) nil nil nil nil [1637 5102])) - :unmatched-syntax 'nil - ) - (semanticdb-table "drawing_context.cpp" - :file "drawing_context.cpp" - :pointmax 11560 - :major-mode 'c++-mode - :tokens '(("config.h" include t nil nil [883 902]) ("algorithm" include t nil nil [904 924]) ("cassert" include t nil nil [925 943]) ("iostream" include t nil nil [944 963]) ("drawing_context.h" include nil nil nil [965 993]) ("surface.h" include nil nil nil [994 1014]) ("font.h" include nil nil nil [1015 1032]) ("main.h" include nil nil nil [1033 1050]) ("gameconfig.h" include nil nil nil [1051 1074]) ("DrawingContext" function ("DrawingContext" type "class") (("targetsurface" variable ("SDL_Surface" type "class") nil ((pointer . 1)) nil nil [1107 1134])) ((parent . "DrawingContext") (constructor . t)) nil nil [1076 1239]) ("DrawingContext" function "void" nil ((parent . "DrawingContext") (destructor . t)) nil nil [1241 1278]) ("draw_surface" function ("void") (("surface" variable ("Surface" type "class") nil ((const . t) (pointer . 1)) nil nil [1314 1337]) ("position" variable ("Vector" type "class") nil ((const . t)) nil nil [1338 1361]) ("layer" variable "int" nil nil nil nil [1366 1376])) ((parent . "DrawingContext")) nil nil [1280 1905]) ("draw_surface_part" function ("void") (("surface" variable ("Surface" type "class") nil ((const . t) (pointer . 1)) nil nil [1946 1969]) ("source" variable ("Vector" type "class") nil ((const . t)) nil nil [1970 1991]) ("size" variable ("Vector" type "class") nil ((const . t)) nil nil [1996 2015]) ("dest" variable ("Vector" type "class") nil ((const . t)) nil nil [2016 2035]) ("layer" variable "int" nil nil nil nil [2036 2046])) ((parent . "DrawingContext")) nil nil [1907 2999]) ("draw_text" function ("void") (("font" variable ("Font" type "class") nil ((const . t) (pointer . 1)) nil nil [3032 3049]) ("text" variable ("std::string" type "class") nil ((const . t)) nil nil [3050 3074]) ("position" variable ("Vector" type "class") nil ((const . t)) nil nil [3079 3102]) ("alignment" variable ("FontAlignment" type "class") nil nil nil nil [3103 3127]) ("layer" variable "int" nil nil nil nil [3128 3138])) ((parent . "DrawingContext")) nil nil [3001 3599]) ("draw_center_text" function ("void") (("font" variable ("Font" type "class") nil ((const . t) (pointer . 1)) nil nil [3639 3656]) ("text" variable ("std::string" type "class") nil ((const . t)) nil nil [3657 3681]) ("position" variable ("Vector" type "class") nil ((const . t)) nil nil [3686 3709]) ("layer" variable "int" nil nil nil nil [3710 3720])) ((parent . "DrawingContext")) nil nil [3601 3826]) ("draw_gradient" function ("void") (("top" variable ("Color" type "class") nil nil nil nil [3863 3873]) ("bottom" variable ("Color" type "class") nil nil nil nil [3874 3887]) ("layer" variable "int" nil nil nil nil [3888 3898])) ((parent . "DrawingContext")) nil nil [3828 4338]) ("draw_filled_rect" function ("void") (("topleft" variable ("Vector" type "class") nil ((const . t)) nil nil [4378 4400]) ("size" variable ("Vector" type "class") nil ((const . t)) nil nil [4401 4420]) ("color" variable ("Color" type "class") nil nil nil nil [4429 4441]) ("layer" variable "int" nil nil nil nil [4442 4452])) ((parent . "DrawingContext")) nil nil [4340 4925]) ("draw_surface_part" function ("void") (("request" variable ("DrawingRequest" type "class") nil nil nil nil [4966 4990])) ((parent . "DrawingContext")) nil nil [4927 5374]) ("draw_gradient" function ("void") (("request" variable ("DrawingRequest" type "class") nil nil nil nil [5411 5435])) ((parent . "DrawingContext")) nil nil [5376 6674]) ("draw_text" function ("void") (("request" variable ("DrawingRequest" type "class") nil nil nil nil [6707 6731])) ((parent . "DrawingContext")) nil nil [6676 6953]) ("draw_filled_rect" function ("void") (("request" variable ("DrawingRequest" type "class") nil nil nil nil [6993 7017])) ((parent . "DrawingContext")) nil nil [6955 9753]) ("do_drawing" function ("void") nil ((parent . "DrawingContext")) nil nil [9755 10916]) ("push_transform" function ("void") nil ((parent . "DrawingContext")) nil nil [10918 10998]) ("pop_transform" function ("void") nil ((parent . "DrawingContext")) nil nil [11000 11142]) ("set_drawing_effect" function ("void") (("effect" variable ("uint32_t" type "class") nil nil nil nil [11184 11200])) ((parent . "DrawingContext")) nil nil [11144 11241]) ("get_drawing_effect" function ("uint32_t" type "class") nil ((parent . "DrawingContext")) nil nil [11243 11333]) ("set_zooming" function ("void") (("zoom" variable "float" nil nil nil nil [11368 11379])) ((parent . "DrawingContext")) nil nil [11335 11408]) ("set_alpha" function ("void") (("alpha" variable ("uint8_t" type "class") nil nil nil nil [11441 11455])) ((parent . "DrawingContext")) nil nil [11410 11486]) ("get_alpha" function ("uint8_t" type "class") nil ((parent . "DrawingContext")) nil nil [11488 11559])) - :unmatched-syntax 'nil - ) - (semanticdb-table "screen.h" - :file "screen.h" - :pointmax 2675 - :major-mode 'c++-mode - :tokens '(("SUPERTUX_SCREEN_H" variable nil nil ((const . t)) nil nil [906 934]) ("SDL.h" include t nil nil [933 949]) ("SDL_opengl.h" include t nil nil [950 973]) ("iostream" include t nil nil [974 993]) ("vector" include t nil nil [995 1012]) ("math/vector.h" include nil nil nil [1013 1037]) ("Color" type "class" (("public" label ((reparse-symbol . classsubparts)) [1112 1119]) ("Color" function ("Color" type "class") nil ((constructor . t)) nil ((reparse-symbol . classsubparts)) [1122 1178]) ("Color" function ("Color" type "class") (("red_" variable ("Uint8" type "class") nil nil nil nil [1190 1201]) ("green_" variable ("Uint8" type "class") nil nil nil nil [1202 1215]) ("blue_" variable ("Uint8" type "class") nil nil nil nil [1216 1228]) ("alpha_" variable ("Uint8" type "class") "255" nil nil nil [1229 1247])) ((constructor . t)) nil ((reparse-symbol . classsubparts)) [1184 1312]) ("Color" function ("Color" type "class") (("color" variable ("std::vector" type "class") nil nil nil nil [1324 1357])) ((constructor . t)) nil ((reparse-symbol . classsubparts)) [1318 1526]) ("Color" function ("Color" type "class") (("color" variable ("std::vector" type "class") nil nil nil nil [1538 1562])) ((constructor . t)) nil ((reparse-symbol . classsubparts)) [1532 1731]) ("Color" function ("Color" type "class") (("o" variable ("Color" type "class") nil ((const . t)) nil nil [1743 1758])) ((constructor . t)) nil ((reparse-symbol . classsubparts)) [1737 1827]) ("==" function ("bool" type "class") (("o" variable ("Color" type "class") nil ((const . t)) nil nil [1849 1864])) nil nil ((reparse-symbol . classsubparts)) [1833 1995]) ("map_rgb" function ("Uint32" type "class") (("surface" variable ("SDL_Surface" type "class") nil ((pointer . 1)) nil nil [2016 2037])) nil nil ((reparse-symbol . classsubparts)) [2001 2097]) ("map_rgba" function ("Uint32" type "class") (("surface" variable ("SDL_Surface" type "class") nil ((pointer . 1)) nil nil [2116 2137])) nil nil ((reparse-symbol . classsubparts)) [2100 2205]) ("red" variable ("Uint8" type "class") nil nil nil nil [2211 2241]) ("green" variable ("Uint8" type "class") nil nil nil nil [2211 2241]) ("blue" variable ("Uint8" type "class") nil nil nil nil [2211 2241]) ("alpha" variable ("Uint8" type "class") nil nil nil nil [2211 2241])) nil nil nil nil [1098 2244]) ("getpixel" function ("Uint32" type "class") (("surface" variable ("SDL_Surface" type "class") nil ((pointer . 1)) nil nil [2262 2283]) ("x" variable "int" nil nil nil nil [2284 2290]) ("y" variable "int" nil nil nil nil [2291 2297])) ((prototype . t)) nil nil [2246 2298]) ("putpixel" function ("void") (("surface" variable ("SDL_Surface" type "class") nil ((pointer . 1)) nil nil [2313 2334]) ("x" variable "int" nil nil nil nil [2335 2341]) ("y" variable "int" nil nil nil nil [2342 2348]) ("pixel" variable ("Uint32" type "class") nil nil nil nil [2349 2362])) ((prototype . t)) nil nil [2299 2363]) ("drawpixel" function ("void") (("x" variable "int" nil nil nil nil [2379 2385]) ("y" variable "int" nil nil nil nil [2386 2392]) ("pixel" variable ("Uint32" type "class") nil nil nil nil [2393 2406])) ((prototype . t)) nil nil [2364 2407]) ("fillrect" function ("void") (("x" variable "float" nil nil nil nil [2422 2430]) ("y" variable "float" nil nil nil nil [2431 2439]) ("w" variable "float" nil nil nil nil [2440 2448]) ("h" variable "float" nil nil nil nil [2449 2457]) ("r" variable "int" nil nil nil nil [2458 2464]) ("g" variable "int" nil nil nil nil [2465 2471]) ("b" variable "int" nil nil nil nil [2472 2478]) ("a" variable "int" "255" nil nil nil [2479 2490])) ((prototype . t)) nil nil [2408 2492]) ("draw_line" function ("void") (("x1" variable "float" nil nil nil nil [2508 2517]) ("y1" variable "float" nil nil nil nil [2518 2527]) ("x2" variable "float" nil nil nil nil [2528 2537]) ("y2" variable "float" nil nil nil nil [2538 2547]) ("r" variable "int" nil nil nil nil [2548 2554]) ("g" variable "int" nil nil nil nil [2555 2561]) ("b" variable "int" nil nil nil nil [2562 2568]) ("a" variable "int" "255" nil nil nil [2569 2580])) ((prototype . t)) nil nil [2493 2582]) ("fadeout" function ("void") (("fade_time" variable "int" nil nil nil nil [2597 2611])) ((prototype . t)) nil nil [2584 2612]) ("shrink_fade" function ("void") (("point" variable ("Vector" type "class") nil ((const . t)) nil nil [2630 2650]) ("fade_time" variable "int" nil nil nil nil [2651 2665])) ((prototype . t)) nil nil [2613 2666])) - :unmatched-syntax 'nil - ) - (semanticdb-table "screen.cpp" - :file "screen.cpp" - :pointmax 8316 - :major-mode 'c++-mode - :tokens '(("config.h" include t nil nil [883 902]) ("iostream" include t nil nil [904 923]) ("cstdio" include t nil nil [924 941]) ("cstdlib" include t nil nil [942 960]) ("cstring" include t nil nil [961 979]) ("cerrno" include t nil nil [980 997]) ("unistd.h" include t nil nil [999 1018]) ("SDL.h" include t nil nil [1020 1036]) ("SDL_image.h" include t nil nil [1037 1059]) ("sys/types.h" include t nil nil [1075 1097]) ("ctype.h" include t nil nil [1098 1116]) ("gameconfig.h" include nil nil nil [1125 1148]) ("screen.h" include nil nil nil [1149 1168]) ("app/globals.h" include nil nil nil [1169 1193]) ("video/drawing_context.h" include nil nil nil [1194 1228]) ("math/vector.h" include nil nil nil [1229 1253]) ("LOOP_DELAY" variable "float" "20.0" ((const . t) (typemodifiers "static")) nil nil [1255 1292]) ("screen" variable ("SDL_Surface" type "class") nil ((typemodifiers "extern") (pointer . 1)) nil nil [1293 1320]) ("getpixel" function ("Uint32" type "class") (("surface" variable ("SDL_Surface" type "class") nil ((pointer . 1)) nil nil [1502 1523]) ("x" variable "int" nil nil nil nil [1524 1530]) ("y" variable "int" nil nil nil nil [1531 1537])) nil nil nil [1486 2116]) ("putpixel" function ("void") (("surface" variable ("SDL_Surface" type "class") nil ((pointer . 1)) nil nil [2279 2300]) ("x" variable "int" nil nil nil nil [2301 2307]) ("y" variable "int" nil nil nil nil [2308 2314]) ("pixel" variable ("Uint32" type "class") nil nil nil nil [2315 2328])) nil nil nil [2265 3046]) ("drawpixel" function ("void") (("x" variable "int" nil nil nil nil [3104 3110]) ("y" variable "int" nil nil nil nil [3111 3117]) ("pixel" variable ("Uint32" type "class") nil nil nil nil [3118 3131])) nil nil nil [3089 3660]) ("fillrect" function ("void") (("x" variable "float" nil nil nil nil [3703 3711]) ("y" variable "float" nil nil nil nil [3712 3720]) ("w" variable "float" nil nil nil nil [3721 3729]) ("h" variable "float" nil nil nil nil [3730 3738]) ("r" variable "int" nil nil nil nil [3739 3745]) ("g" variable "int" nil nil nil nil [3746 3752]) ("b" variable "int" nil nil nil nil [3753 3759]) ("a" variable "int" nil nil nil nil [3760 3766])) nil nil nil [3689 5025]) ("SGN" variable nil (nil) ((const . t)) nil nil [5062 5108]) ("ABS" variable nil (nil) ((const . t)) nil nil [5109 5144]) ("draw_line" function ("void") (("x1" variable "float" nil nil nil nil [5161 5170]) ("y1" variable "float" nil nil nil nil [5171 5180]) ("x2" variable "float" nil nil nil nil [5181 5190]) ("y2" variable "float" nil nil nil nil [5191 5200]) ("r" variable "int" nil nil nil nil [5226 5232]) ("g" variable "int" nil nil nil nil [5233 5239]) ("b" variable "int" nil nil nil nil [5240 5246]) ("a" variable "int" nil nil nil nil [5247 5253])) nil nil nil [5146 6471]) ("fadeout" function ("void") (("fade_time" variable "int" nil nil nil nil [6487 6501])) nil nil nil [6474 6931]) ("shrink_fade" function ("void") (("point" variable ("Vector" type "class") nil ((const . t)) nil nil [6950 6970]) ("fade_time" variable "int" nil nil nil nil [6971 6985])) nil nil nil [6933 8315])) - :unmatched-syntax 'nil - ) - (semanticdb-table "surface.h" - :file "surface.h" - :pointmax 5586 - :major-mode 'c++-mode - :tokens '(("SUPERTUX_TEXTURE_H" variable nil nil ((const . t)) nil nil [891 920]) ("string" include t nil nil [919 936]) ("list" include t nil nil [937 952]) ("SDL.h" include t nil nil [954 970]) ("SDL_opengl.h" include t nil nil [971 994]) ("math/vector.h" include nil nil nil [996 1020]) ("video/screen.h" include nil nil nil [1021 1046]) ("apply_filter_to_surface" function ("void") (("surface" variable ("SDL_Surface" type "class") nil ((pointer . 1)) nil nil [1077 1098]) ("filter" variable "int" nil nil nil nil [1099 1110]) ("value" variable "int" nil nil nil nil [1111 1121])) ((prototype . t)) nil nil [1048 1122]) ("sdl_surface_from_sdl_surface" function ("SDL_Surface" type "class") (("sdl_surf" variable ("SDL_Surface" type "class") nil ((pointer . 1)) nil nil [1165 1187]) ("use_alpha" variable ("bool" type "class") nil nil nil nil [1188 1203])) ((pointer . 1) (prototype . t)) nil nil [1123 1204]) ("sdl_surface_from_nothing" function ("SDL_Surface" type "class") nil ((pointer . 1) (prototype . t)) nil nil [1205 1245]) ("SurfaceImpl" type "class" nil nil nil nil nil [1247 1265]) ("SurfaceSDL" type "class" nil nil nil nil nil [1266 1283]) ("SurfaceOpenGL" type "class" nil nil nil nil nil [1284 1304]) ("DrawingContext" type "class" nil nil nil nil nil [1305 1326]) ("" type "enum" (("NONE_EFFECT" variable "int" (1420 1426) ((const . t)) nil ((reparse-symbol . enumsubparts)) [1400 1426]) ("VERTICAL_FLIP" variable "int" (1488 1494) ((const . t)) nil ((reparse-symbol . enumsubparts)) [1468 1494]) ("HORIZONTAL_FLIP" variable "int" (1562 1568) ((const . t)) nil ((reparse-symbol . enumsubparts)) [1542 1568]) ("SEMI_TRANSPARENT" variable "int" (1642 1648) ((const . t)) nil ((reparse-symbol . enumsubparts)) [1622 1648])) nil nil nil nil [1361 1651]) ("" type "enum" (("HORIZONTAL_FLIP_FILTER" variable "int" nil ((const . t)) nil ((reparse-symbol . enumsubparts)) [1683 1706]) ("MASK_FILTER" variable "int" nil ((const . t)) nil ((reparse-symbol . enumsubparts)) [1709 1721]) ("NONE_FILTER" variable "int" nil ((const . t)) nil ((reparse-symbol . enumsubparts)) [1724 1737])) nil nil nil nil [1674 1738]) ("SurfaceData" type "class" (("public" label ((reparse-symbol . classsubparts)) [1830 1837]) ("ConstructorType" type "enum" (("LOAD" variable "int" nil ((const . t)) nil ((reparse-symbol . enumsubparts)) [1863 1868]) ("LOAD_PART" variable "int" nil ((const . t)) nil ((reparse-symbol . enumsubparts)) [1869 1879]) ("SURFACE" variable "int" nil ((const . t)) nil ((reparse-symbol . enumsubparts)) [1880 1888]) ("GRADIENT" variable "int" nil ((const . t)) nil ((reparse-symbol . enumsubparts)) [1889 1899])) nil nil nil ((reparse-symbol . classsubparts)) [1840 1900]) ("type" variable ("ConstructorType" type "class") nil nil nil nil [1903 1924]) ("surface" variable ("SDL_Surface" type "class") nil ((pointer . 1)) nil nil [1927 1948]) ("file" variable ("std::string" type "class") nil nil nil nil [1951 1968]) ("Filter" type "struct" (("type" variable "int" nil nil nil nil [1990 1999]) ("color" variable ("Color" type "class") nil nil nil nil [2000 2012])) nil nil nil ((reparse-symbol . classsubparts)) [1974 2015]) ("applied_filters" variable ("std::vector" type "class") nil nil nil nil [2018 2054]) ("use_alpha" variable ("bool" type "class") nil nil nil nil [2060 2075]) ("x" variable "int" nil nil nil nil [2078 2084]) ("y" variable "int" nil nil nil nil [2087 2093]) ("w" variable "int" nil nil nil nil [2096 2102]) ("h" variable "int" nil nil nil nil [2105 2111]) ("top_gradient" variable ("Color" type "class") nil nil nil nil [2114 2133]) ("bottom_gradient" variable ("Color" type "class") nil nil nil nil [2136 2158]) ("SurfaceData" function ("SurfaceData" type "class") (("surf" variable ("SDL_Surface" type "class") nil ((pointer . 1)) nil nil [2176 2194]) ("use_alpha_" variable ("bool" type "class") nil nil nil nil [2195 2211])) ((constructor . t) (prototype . t)) nil ((reparse-symbol . classsubparts)) [2164 2212]) ("SurfaceData" function ("SurfaceData" type "class") (("file_" variable ("std::string" type "class") nil ((const . t)) nil nil [2227 2252]) ("use_alpha_" variable ("bool" type "class") nil nil nil nil [2253 2269])) ((constructor . t) (prototype . t)) nil ((reparse-symbol . classsubparts)) [2215 2270]) ("SurfaceData" function ("SurfaceData" type "class") (("file_" variable ("std::string" type "class") nil ((const . t)) nil nil [2285 2310]) ("x_" variable "int" nil nil nil nil [2311 2318]) ("y_" variable "int" nil nil nil nil [2319 2326]) ("w_" variable "int" nil nil nil nil [2327 2334]) ("h_" variable "int" nil nil nil nil [2335 2342]) ("use_alpha_" variable ("bool" type "class") nil nil nil nil [2343 2359])) ((constructor . t) (prototype . t)) nil ((reparse-symbol . classsubparts)) [2273 2360]) ("SurfaceData" function ("SurfaceData" type "class") (("top_gradient_" variable ("Color" type "class") nil nil nil nil [2375 2395]) ("bottom_gradient_" variable ("Color" type "class") nil nil nil nil [2396 2419]) ("w_" variable "int" nil nil nil nil [2420 2427]) ("h_" variable "int" nil nil nil nil [2428 2435])) ((constructor . t) (prototype . t)) nil ((reparse-symbol . classsubparts)) [2363 2436]) ("SurfaceData" function "void" nil ((destructor . t) (prototype . t)) nil ((reparse-symbol . classsubparts)) [2439 2454]) ("create_SurfaceSDL" function ("SurfaceSDL" type "class") nil ((pointer . 1) (prototype . t)) nil ((reparse-symbol . classsubparts)) [2460 2492]) ("create_SurfaceOpenGL" function ("SurfaceOpenGL" type "class") nil ((pointer . 1) (prototype . t)) nil ((reparse-symbol . classsubparts)) [2495 2533]) ("create" function ("SurfaceImpl" type "class") nil ((pointer . 1) (prototype . t)) nil ((reparse-symbol . classsubparts)) [2536 2558])) nil nil nil nil [1810 2561]) ("Surface" type "class" (("public" label ((reparse-symbol . classsubparts)) [2711 2718]) ("data" variable ("SurfaceData" type "class") nil nil nil nil [2721 2738]) ("impl" variable ("SurfaceImpl" type "class") nil ((pointer . 1)) nil nil [2741 2759]) ("w" variable "int" nil nil nil nil [2762 2768]) ("h" variable "int" nil nil nil nil [2771 2777]) ("Surfaces" type "typedef" nil ("std::list") ((typedef "std::list" type "class")) nil nil [2783 2820]) ("surfaces" variable ("Surfaces" type "class") nil ((typemodifiers "static")) nil nil [2823 2848]) ("public" label ((reparse-symbol . classsubparts)) [2849 2856]) ("reload_all" function ("void") nil ((typemodifiers "static") (prototype . t)) nil ((reparse-symbol . classsubparts)) [2859 2884]) ("debug_check" function ("void") nil ((typemodifiers "static") (prototype . t)) nil ((reparse-symbol . classsubparts)) [2887 2913]) ("Surface" function ("Surface" type "class") (("surf" variable ("SDL_Surface" type "class") nil ((pointer . 1)) nil nil [2927 2945]) ("use_alpha" variable ("bool" type "class") nil nil nil nil [2946 2961])) ((constructor . t) (prototype . t)) nil ((reparse-symbol . classsubparts)) [2919 2962]) ("Surface" function ("Surface" type "class") (("file" variable ("std::string" type "class") nil ((const . t)) nil nil [2973 2997]) ("use_alpha" variable ("bool" type "class") nil nil nil nil [2998 3013])) ((constructor . t) (prototype . t)) nil ((reparse-symbol . classsubparts)) [2965 3014]) ("Surface" function ("Surface" type "class") (("file" variable ("std::string" type "class") nil ((const . t)) nil nil [3025 3049]) ("x" variable "int" nil nil nil nil [3050 3056]) ("y" variable "int" nil nil nil nil [3057 3063]) ("w" variable "int" nil nil nil nil [3064 3070]) ("h" variable "int" nil nil nil nil [3071 3077]) ("use_alpha" variable ("bool" type "class") nil nil nil nil [3078 3093])) ((constructor . t) (prototype . t)) nil ((reparse-symbol . classsubparts)) [3017 3094]) ("Surface" function ("Surface" type "class") (("top_gradient" variable ("Color" type "class") nil nil nil nil [3105 3124]) ("bottom_gradient" variable ("Color" type "class") nil nil nil nil [3125 3147]) ("w_" variable "int" nil nil nil nil [3148 3155]) ("h_" variable "int" nil nil nil nil [3156 3163])) ((constructor . t) (prototype . t)) nil ((reparse-symbol . classsubparts)) [3097 3164]) ("Surface" function "void" nil ((destructor . t) (prototype . t)) nil ((reparse-symbol . classsubparts)) [3167 3178]) ("reload" function ("void") nil ((prototype . t)) nil ((reparse-symbol . classsubparts)) [3256 3270]) ("apply_filter" function ("void") (("filter" variable "int" nil nil nil nil [3294 3305]) ("color" variable ("Color" type "class") "Color(0,0,0)" nil nil nil [3306 3332])) ((prototype . t)) nil ((reparse-symbol . classsubparts)) [3276 3334])) nil nil nil nil [2695 3337]) ("SurfaceImpl" type "class" (("protected" label ((reparse-symbol . classsubparts)) [3445 3455]) ("sdl_surface" variable ("SDL_Surface" type "class") nil ((pointer . 1)) nil nil [3458 3483]) ("public" label ((reparse-symbol . classsubparts)) [3487 3494]) ("w" variable "int" nil nil nil nil [3497 3503]) ("h" variable "int" nil nil nil nil [3506 3512]) ("public" label ((reparse-symbol . classsubparts)) [3516 3523]) ("SurfaceImpl" function ("SurfaceImpl" type "class") nil ((constructor . t) (prototype . t)) nil ((reparse-symbol . classsubparts)) [3526 3540]) ("SurfaceImpl" function "void" nil ((typemodifiers "virtual") (destructor . t) (prototype . t)) nil ((reparse-symbol . classsubparts)) [3543 3566]) ("draw" function ("int") (("x" variable "float" nil nil nil nil [3654 3662]) ("y" variable "float" nil nil nil nil [3663 3671]) ("alpha" variable ("Uint8" type "class") nil nil nil nil [3672 3684]) ("effect" variable ("Uint32" type "class") "NONE_EFFECT)" nil nil nil [3685 3713])) ((typemodifiers "virtual") (prototype . t) (pure-virtual . t)) nil ((reparse-symbol . classsubparts)) [3637 3718]) ("draw_part" function ("int") (("sx" variable "float" nil nil nil nil [3743 3752]) ("sy" variable "float" nil nil nil nil [3753 3762]) ("x" variable "float" nil nil nil nil [3763 3771]) ("y" variable "float" nil nil nil nil [3772 3780]) ("w" variable "float" nil nil nil nil [3781 3789]) ("h" variable "float" nil nil nil nil [3790 3798]) ("alpha" variable ("Uint8" type "class") nil nil nil nil [3800 3812]) ("effect" variable ("Uint32" type "class") "NONE_EFFECT)" nil nil nil [3813 3841])) ((typemodifiers "virtual") (prototype . t) (pure-virtual . t)) nil ((reparse-symbol . classsubparts)) [3721 3846]) ("draw_stretched" function ("int") (("x" variable "float" nil nil nil nil [3876 3884]) ("y" variable "float" nil nil nil nil [3885 3893]) ("w" variable "int" nil nil nil nil [3894 3900]) ("h" variable "int" nil nil nil nil [3901 3907]) ("alpha" variable ("Uint8" type "class") nil nil nil nil [3908 3920]) ("effect" variable ("Uint32" type "class") "NONE_EFFECT)" nil nil nil [3921 3949])) ((typemodifiers "virtual") (prototype . t) (pure-virtual . t)) nil ((reparse-symbol . classsubparts)) [3849 3954]) ("get_sdl_surface" function ("SDL_Surface" type "class") nil ((pointer . 1) (prototype . t)) nil ((reparse-symbol . classsubparts)) [3963 4000]) ("apply_filter" function ("void") (("filter" variable "int" nil nil nil nil [4069 4080]) ("color" variable ("Color" type "class") "Color(0,0,0)" nil nil nil [4081 4107])) ((typemodifiers "virtual") (prototype . t) (pure-virtual . t)) nil ((reparse-symbol . classsubparts)) [4043 4113])) nil nil nil nil [3425 4116]) ("SurfaceSDL" type "class" (("public" label ((reparse-symbol . classsubparts)) [4158 4165]) ("SurfaceSDL" function ("SurfaceSDL" type "class") (("surf" variable ("SDL_Surface" type "class") nil ((pointer . 1)) nil nil [4179 4197]) ("use_alpha" variable ("bool" type "class") nil nil nil nil [4198 4213])) ((constructor . t) (prototype . t)) nil ((reparse-symbol . classsubparts)) [4168 4214]) ("SurfaceSDL" function ("SurfaceSDL" type "class") (("file" variable ("std::string" type "class") nil ((const . t)) nil nil [4228 4252]) ("use_alpha" variable ("bool" type "class") nil nil nil nil [4253 4268])) ((constructor . t) (prototype . t)) nil ((reparse-symbol . classsubparts)) [4217 4269]) ("SurfaceSDL" function ("SurfaceSDL" type "class") (("file" variable ("std::string" type "class") nil ((const . t)) nil nil [4283 4307]) ("x" variable "int" nil nil nil nil [4308 4314]) ("y" variable "int" nil nil nil nil [4315 4321]) ("w_" variable "int" nil nil nil nil [4322 4329]) ("h_" variable "int" nil nil nil nil [4330 4337]) ("use_alpha" variable ("bool" type "class") nil nil nil nil [4338 4353])) ((constructor . t) (prototype . t)) nil ((reparse-symbol . classsubparts)) [4272 4354]) ("SurfaceSDL" function ("SurfaceSDL" type "class") (("top_gradient" variable ("Color" type "class") nil nil nil nil [4368 4387]) ("bottom_gradient" variable ("Color" type "class") nil nil nil nil [4388 4410]) ("w" variable "int" nil nil nil nil [4411 4417]) ("h" variable "int" nil nil nil nil [4418 4424])) ((constructor . t) (prototype . t)) nil ((reparse-symbol . classsubparts)) [4357 4425]) ("SurfaceSDL" function "void" nil ((typemodifiers "virtual") (destructor . t) (prototype . t)) nil ((reparse-symbol . classsubparts)) [4428 4450]) ("draw" function ("int") (("x" variable "float" nil nil nil nil [4465 4473]) ("y" variable "float" nil nil nil nil [4474 4482]) ("alpha" variable ("Uint8" type "class") nil nil nil nil [4483 4495]) ("effect" variable ("Uint32" type "class") "NONE_EFFECT)" nil nil nil [4496 4524])) ((prototype . t)) nil ((reparse-symbol . classsubparts)) [4456 4525]) ("draw_part" function ("int") (("sx" variable "float" nil nil nil nil [4542 4551]) ("sy" variable "float" nil nil nil nil [4552 4561]) ("x" variable "float" nil nil nil nil [4562 4570]) ("y" variable "float" nil nil nil nil [4571 4579]) ("w" variable "float" nil nil nil nil [4580 4588]) ("h" variable "float" nil nil nil nil [4589 4597]) ("alpha" variable ("Uint8" type "class") nil nil nil nil [4599 4611]) ("effect" variable ("Uint32" type "class") "NONE_EFFECT)" nil nil nil [4612 4640])) ((prototype . t)) nil ((reparse-symbol . classsubparts)) [4528 4641]) ("draw_stretched" function ("int") (("x" variable "float" nil nil nil nil [4663 4671]) ("y" variable "float" nil nil nil nil [4672 4680]) ("w" variable "int" nil nil nil nil [4681 4687]) ("h" variable "int" nil nil nil nil [4688 4694]) ("alpha" variable ("Uint8" type "class") nil nil nil nil [4695 4707]) ("effect" variable ("Uint32" type "class") "NONE_EFFECT)" nil nil nil [4708 4736])) ((prototype . t)) nil ((reparse-symbol . classsubparts)) [4644 4737]) ("apply_filter" function ("void") (("filter" variable "int" nil nil nil nil [4761 4772]) ("color" variable ("Color" type "class") nil nil nil nil [4773 4785])) ((prototype . t)) nil ((reparse-symbol . classsubparts)) [4743 4786])) (("SurfaceImpl")) nil nil nil [4118 4789]) ("SurfaceOpenGL" type "class" (("public" label ((reparse-symbol . classsubparts)) [4834 4841]) ("gl_texture" variable ("GLuint" type "class") nil nil nil nil [4844 4862]) ("public" label ((reparse-symbol . classsubparts)) [4866 4873]) ("SurfaceOpenGL" function ("SurfaceOpenGL" type "class") (("surf" variable ("SDL_Surface" type "class") nil ((pointer . 1)) nil nil [4890 4908]) ("use_alpha" variable ("bool" type "class") nil nil nil nil [4909 4924])) ((constructor . t) (prototype . t)) nil ((reparse-symbol . classsubparts)) [4876 4925]) ("SurfaceOpenGL" function ("SurfaceOpenGL" type "class") (("file" variable ("std::string" type "class") nil ((const . t)) nil nil [4942 4966]) ("use_alpha" variable ("bool" type "class") nil nil nil nil [4967 4982])) ((constructor . t) (prototype . t)) nil ((reparse-symbol . classsubparts)) [4928 4983]) ("SurfaceOpenGL" function ("SurfaceOpenGL" type "class") (("file" variable ("std::string" type "class") nil ((const . t)) nil nil [5000 5024]) ("x" variable "int" nil nil nil nil [5025 5031]) ("y" variable "int" nil nil nil nil [5032 5038]) ("w" variable "int" nil nil nil nil [5039 5045]) ("h" variable "int" nil nil nil nil [5046 5052]) ("use_alpha" variable ("bool" type "class") nil nil nil nil [5053 5068])) ((constructor . t) (prototype . t)) nil ((reparse-symbol . classsubparts)) [4986 5069]) ("SurfaceOpenGL" function ("SurfaceOpenGL" type "class") (("top_gradient" variable ("Color" type "class") nil nil nil nil [5086 5105]) ("bottom_gradient" variable ("Color" type "class") nil nil nil nil [5106 5128]) ("w" variable "int" nil nil nil nil [5129 5135]) ("h" variable "int" nil nil nil nil [5136 5142])) ((constructor . t) (prototype . t)) nil ((reparse-symbol . classsubparts)) [5072 5143]) ("SurfaceOpenGL" function "void" nil ((typemodifiers "virtual") (destructor . t) (prototype . t)) nil ((reparse-symbol . classsubparts)) [5149 5174]) ("draw" function ("int") (("x" variable "float" nil nil nil nil [5189 5197]) ("y" variable "float" nil nil nil nil [5198 5206]) ("alpha" variable ("Uint8" type "class") nil nil nil nil [5207 5219]) ("effect" variable ("Uint32" type "class") "NONE_EFFECT)" nil nil nil [5220 5248])) ((prototype . t)) nil ((reparse-symbol . classsubparts)) [5180 5249]) ("draw_part" function ("int") (("sx" variable "float" nil nil nil nil [5266 5275]) ("sy" variable "float" nil nil nil nil [5276 5285]) ("x" variable "float" nil nil nil nil [5286 5294]) ("y" variable "float" nil nil nil nil [5295 5303]) ("w" variable "float" nil nil nil nil [5304 5312]) ("h" variable "float" nil nil nil nil [5313 5321]) ("alpha" variable ("Uint8" type "class") nil nil nil nil [5323 5335]) ("effect" variable ("Uint32" type "class") "NONE_EFFECT)" nil nil nil [5336 5364])) ((prototype . t)) nil ((reparse-symbol . classsubparts)) [5252 5365]) ("draw_stretched" function ("int") (("x" variable "float" nil nil nil nil [5387 5395]) ("y" variable "float" nil nil nil nil [5396 5404]) ("w" variable "int" nil nil nil nil [5405 5411]) ("h" variable "int" nil nil nil nil [5412 5418]) ("alpha" variable ("Uint8" type "class") nil nil nil nil [5419 5431]) ("effect" variable ("Uint32" type "class") "NONE_EFFECT)" nil nil nil [5432 5460])) ((prototype . t)) nil ((reparse-symbol . classsubparts)) [5368 5461]) ("apply_filter" function ("void") (("filter" variable "int" nil nil nil nil [5485 5496]) ("color" variable ("Color" type "class") nil nil nil nil [5497 5509])) ((prototype . t)) nil ((reparse-symbol . classsubparts)) [5467 5510]) ("private" label ((reparse-symbol . classsubparts)) [5514 5522]) ("create_gl" function ("void") (("surf" variable ("SDL_Surface" type "class") nil ((pointer . 1)) nil nil [5540 5559]) ("tex" variable ("GLuint" type "class") nil ((pointer . 1)) nil nil [5560 5573])) ((prototype . t)) nil ((reparse-symbol . classsubparts)) [5525 5574])) (("SurfaceImpl")) nil nil nil [4791 5577])) - :unmatched-syntax 'nil - ) - (semanticdb-table "surface.cpp" - :file "surface.cpp" - :pointmax 26873 - :major-mode 'c++-mode - :tokens '(("config.h" include t nil nil [864 883]) ("cassert" include t nil nil [885 903]) ("iostream" include t nil nil [904 923]) ("algorithm" include t nil nil [924 944]) ("stdexcept" include t nil nil [945 965]) ("sstream" include t nil nil [966 984]) ("SDL.h" include t nil nil [986 1002]) ("SDL_image.h" include t nil nil [1003 1025]) ("gameconfig.h" include nil nil nil [1027 1050]) ("video/surface.h" include nil nil nil [1051 1077]) ("video/screen.h" include nil nil nil [1078 1103]) ("app/globals.h" include nil nil nil [1104 1128]) ("app/setup.h" include nil nil nil [1129 1151]) ("Surface::surfaces" variable ("Surface::Surfaces" type "class") nil nil nil nil [1180 1216]) ("screen" variable ("SDL_Surface" type "class") nil ((typemodifiers "extern") (pointer . 1)) nil nil [1218 1245]) ("SurfaceData" function ("SurfaceData" type "class") (("temp" variable ("SDL_Surface" type "class") nil ((pointer . 1)) nil nil [1272 1290]) ("use_alpha_" variable ("bool" type "class") nil nil nil nil [1291 1307])) ((parent . "SurfaceData") (constructor . t)) nil nil [1247 2025]) ("SurfaceData" function ("SurfaceData" type "class") (("file_" variable ("std::string" type "class") nil ((const . t)) nil nil [2052 2077]) ("use_alpha_" variable ("bool" type "class") nil nil nil nil [2078 2094])) ((parent . "SurfaceData") (constructor . t)) nil nil [2027 2162]) ("SurfaceData" function ("SurfaceData" type "class") (("file_" variable ("std::string" type "class") nil ((const . t)) nil nil [2189 2214]) ("x_" variable "int" nil nil nil nil [2215 2222]) ("y_" variable "int" nil nil nil nil [2223 2230]) ("w_" variable "int" nil nil nil nil [2235 2242]) ("h_" variable "int" nil nil nil nil [2243 2250]) ("use_alpha_" variable ("bool" type "class") nil nil nil nil [2251 2267])) ((parent . "SurfaceData") (constructor . t)) nil nil [2164 2372]) ("SurfaceData" function ("SurfaceData" type "class") (("top_gradient_" variable ("Color" type "class") nil nil nil nil [2399 2419]) ("bottom_gradient_" variable ("Color" type "class") nil nil nil nil [2420 2443]) ("w_" variable "int" nil nil nil nil [2448 2455]) ("h_" variable "int" nil nil nil nil [2456 2463])) ((parent . "SurfaceData") (constructor . t)) nil nil [2374 2602]) ("SurfaceData" function "void" nil ((parent . "SurfaceData") (destructor . t)) nil nil [2605 2664]) ("create" function ("SurfaceImpl" type "class") nil ((parent . "SurfaceData") (pointer . 1)) nil nil [2666 2800]) ("create_SurfaceSDL" function ("SurfaceSDL" type "class") nil ((parent . "SurfaceData") (pointer . 1)) nil nil [2802 3161]) ("create_SurfaceOpenGL" function ("SurfaceOpenGL" type "class") nil ((parent . "SurfaceData") (pointer . 1)) nil nil [3163 3577]) ("power_of_two" function ("int") (("input" variable "int" nil nil nil nil [3653 3663])) ((typemodifiers "static")) nil nil [3629 3752]) ("Surface" function ("Surface" type "class") (("surf" variable ("SDL_Surface" type "class") nil ((pointer . 1)) nil nil [3771 3789]) ("use_alpha" variable ("bool" type "class") nil nil nil nil [3790 3805])) ((parent . "Surface") (constructor . t)) nil nil [3754 3955]) ("Surface" function ("Surface" type "class") (("file" variable ("std::string" type "class") nil ((const . t)) nil nil [3974 3998]) ("use_alpha" variable ("bool" type "class") nil nil nil nil [3999 4014])) ((parent . "Surface") (constructor . t)) nil nil [3957 4164]) ("Surface" function ("Surface" type "class") (("file" variable ("std::string" type "class") nil ((const . t)) nil nil [4183 4207]) ("x" variable "int" nil nil nil nil [4208 4214]) ("y" variable "int" nil nil nil nil [4215 4221]) ("w_" variable "int" nil nil nil nil [4222 4229]) ("h_" variable "int" nil nil nil nil [4230 4237]) ("use_alpha" variable ("bool" type "class") nil nil nil nil [4238 4253])) ((parent . "Surface") (constructor . t)) nil nil [4166 4417]) ("Surface" function ("Surface" type "class") (("top_background" variable ("Color" type "class") nil nil nil nil [4436 4457]) ("bottom_background" variable ("Color" type "class") nil nil nil nil [4458 4482]) ("w_" variable "int" nil nil nil nil [4483 4490]) ("h_" variable "int" nil nil nil nil [4491 4498])) ((parent . "Surface") (constructor . t)) nil nil [4419 4674]) ("reload" function ("void") nil ((parent . "Surface")) nil nil [4676 4979]) ("apply_filter" function ("void") (("filter" variable "int" nil nil nil nil [5008 5019]) ("color" variable ("Color" type "class") nil nil nil nil [5020 5032])) ((parent . "Surface")) nil nil [4981 5218]) ("Surface" function "void" nil ((parent . "Surface") (destructor . t)) nil nil [5220 5541]) ("reload_all" function ("void") nil ((parent . "Surface")) nil nil [5543 5674]) ("debug_check" function ("void") nil ((parent . "Surface")) nil nil [5676 5888]) ("apply_filter_to_surface" function ("void") (("surface" variable ("SDL_Surface" type "class") nil ((pointer . 1)) nil nil [5919 5940]) ("filter" variable "int" nil nil nil nil [5941 5952]) ("color" variable ("Color" type "class") nil nil nil nil [5953 5965])) nil nil nil [5890 6998]) ("sdl_surface_part_from_file" function ("SDL_Surface" type "class") (("file" variable ("std::string" type "class") nil ((const . t)) nil nil [7040 7064]) ("x" variable "int" nil nil nil nil [7065 7071]) ("y" variable "int" nil nil nil nil [7072 7078]) ("w" variable "int" nil nil nil nil [7079 7085]) ("h" variable "int" nil nil nil nil [7086 7092]) ("use_alpha" variable ("bool" type "class") nil nil nil nil [7094 7109])) ((pointer . 1)) nil nil [7000 8317]) ("sdl_surface_from_file" function ("SDL_Surface" type "class") (("file" variable ("std::string" type "class") nil ((const . t)) nil nil [8354 8378]) ("use_alpha" variable ("bool" type "class") nil nil nil nil [8379 8394])) ((pointer . 1)) nil nil [8319 9094]) ("sdl_surface_from_sdl_surface" function ("SDL_Surface" type "class") (("sdl_surf" variable ("SDL_Surface" type "class") nil ((pointer . 1)) nil nil [9138 9160]) ("use_alpha" variable ("bool" type "class") nil nil nil nil [9161 9176])) ((pointer . 1)) nil nil [9096 10116]) ("sdl_surface_from_gradient" function ("SDL_Surface" type "class") (("top" variable ("Color" type "class") nil nil nil nil [10157 10167]) ("bottom" variable ("Color" type "class") nil nil nil nil [10168 10181]) ("w" variable "int" nil nil nil nil [10182 10188]) ("h" variable "int" nil nil nil nil [10189 10195])) ((pointer . 1)) nil nil [10118 11237]) ("SurfaceImpl" function ("SurfaceImpl" type "class") nil ((parent . "SurfaceImpl") (constructor . t)) nil nil [11318 11347]) ("SurfaceImpl" function "void" nil ((parent . "SurfaceImpl") (destructor . t)) nil nil [11349 11412]) ("get_sdl_surface" function ("SDL_Surface" type "class") nil ((parent . "SurfaceImpl") (pointer . 1)) nil nil [11414 11489]) ("SurfaceOpenGL" function ("SurfaceOpenGL" type "class") (("surf" variable ("SDL_Surface" type "class") nil ((pointer . 1)) nil nil [11520 11538]) ("use_alpha" variable ("bool" type "class") nil nil nil nil [11539 11554])) ((parent . "SurfaceOpenGL") (constructor . t)) nil nil [11491 11704]) ("SurfaceOpenGL" function ("SurfaceOpenGL" type "class") (("file" variable ("std::string" type "class") nil ((const . t)) nil nil [11735 11759]) ("use_alpha" variable ("bool" type "class") nil nil nil nil [11760 11775])) ((parent . "SurfaceOpenGL") (constructor . t)) nil nil [11706 11918]) ("SurfaceOpenGL" function ("SurfaceOpenGL" type "class") (("file_" variable ("std::string" type "class") nil ((const . t)) nil nil [11949 11974]) ("x_" variable "int" nil nil nil nil [11975 11982]) ("y_" variable "int" nil nil nil nil [11983 11990]) ("w_" variable "int" nil nil nil nil [11995 12002]) ("h_" variable "int" nil nil nil nil [12003 12010]) ("use_alpha_" variable ("bool" type "class") nil nil nil nil [12011 12027])) ((parent . "SurfaceOpenGL") (constructor . t)) nil nil [11920 12193]) ("SurfaceOpenGL" function ("SurfaceOpenGL" type "class") (("top_gradient" variable ("Color" type "class") nil nil nil nil [12224 12243]) ("bottom_gradient" variable ("Color" type "class") nil nil nil nil [12244 12266]) ("_w" variable "int" nil nil nil nil [12271 12278]) ("_h" variable "int" nil nil nil nil [12279 12286])) ((parent . "SurfaceOpenGL") (constructor . t)) nil nil [12195 12455]) ("SurfaceOpenGL" function "void" nil ((parent . "SurfaceOpenGL") (destructor . t)) nil nil [12457 12528]) ("create_gl" function ("void") (("surf" variable ("SDL_Surface" type "class") nil ((pointer . 1)) nil nil [12560 12579]) ("tex" variable ("GLuint" type "class") nil ((pointer . 1)) nil nil [12580 12593])) ((parent . "SurfaceOpenGL")) nil nil [12530 14870]) ("draw" function ("int") (("x" variable "float" nil nil nil nil [14896 14904]) ("y" variable "float" nil nil nil nil [14905 14913]) ("alpha" variable ("Uint8" type "class") nil nil nil nil [14914 14926]) ("effect" variable ("Uint32" type "class") nil nil nil nil [14927 14941])) ((parent . "SurfaceOpenGL")) nil nil [14872 16605]) ("draw_part" function ("int") (("sx" variable "float" nil nil nil nil [16636 16645]) ("sy" variable "float" nil nil nil nil [16646 16655]) ("x" variable "float" nil nil nil nil [16656 16664]) ("y" variable "float" nil nil nil nil [16665 16673]) ("w" variable "float" nil nil nil nil [16674 16682]) ("h" variable "float" nil nil nil nil [16683 16691]) ("alpha" variable ("Uint8" type "class") nil nil nil nil [16692 16704]) ("effect" variable ("Uint32" type "class") nil nil nil nil [16705 16719])) ((parent . "SurfaceOpenGL")) nil nil [16607 18478]) ("draw_stretched" function ("int") (("x" variable "float" nil nil nil nil [18514 18522]) ("y" variable "float" nil nil nil nil [18523 18531]) ("sw" variable "int" nil nil nil nil [18532 18539]) ("sh" variable "int" nil nil nil nil [18540 18547]) ("alpha" variable ("Uint8" type "class") nil nil nil nil [18548 18560]) ("effect" variable ("Uint32" type "class") nil nil nil nil [18561 18575])) ((parent . "SurfaceOpenGL")) nil nil [18480 20257]) ("apply_filter" function ("void") (("filter" variable "int" nil nil nil nil [20292 20303]) ("color" variable ("Color" type "class") nil nil nil nil [20304 20316])) ((parent . "SurfaceOpenGL")) nil nil [20259 20460]) ("SurfaceSDL" function ("SurfaceSDL" type "class") (("surf" variable ("SDL_Surface" type "class") nil ((pointer . 1)) nil nil [20485 20503]) ("use_alpha" variable ("bool" type "class") nil nil nil nil [20504 20519])) ((parent . "SurfaceSDL") (constructor . t)) nil nil [20462 20630]) ("SurfaceSDL" function ("SurfaceSDL" type "class") (("file" variable ("std::string" type "class") nil ((const . t)) nil nil [20655 20679]) ("use_alpha" variable ("bool" type "class") nil nil nil nil [20680 20695])) ((parent . "SurfaceSDL") (constructor . t)) nil nil [20632 20799]) ("SurfaceSDL" function ("SurfaceSDL" type "class") (("file" variable ("std::string" type "class") nil ((const . t)) nil nil [20824 20848]) ("x" variable "int" nil nil nil nil [20849 20855]) ("y" variable "int" nil nil nil nil [20856 20862]) ("_w" variable "int" nil nil nil nil [20863 20870]) ("_h" variable "int" nil nil nil nil [20871 20878]) ("use_alpha" variable ("bool" type "class") nil nil nil nil [20883 20898])) ((parent . "SurfaceSDL") (constructor . t)) nil nil [20801 21023]) ("SurfaceSDL" function ("SurfaceSDL" type "class") (("top_gradient" variable ("Color" type "class") nil nil nil nil [21048 21067]) ("bottom_gradient" variable ("Color" type "class") nil nil nil nil [21068 21090]) ("_w" variable "int" nil nil nil nil [21095 21102]) ("_h" variable "int" nil nil nil nil [21103 21110])) ((parent . "SurfaceSDL") (constructor . t)) nil nil [21025 21240]) ("draw" function ("int") (("x" variable "float" nil nil nil nil [21263 21271]) ("y" variable "float" nil nil nil nil [21272 21280]) ("alpha" variable ("Uint8" type "class") nil nil nil nil [21281 21293]) ("effect" variable ("Uint32" type "class") nil nil nil nil [21294 21308])) ((parent . "SurfaceSDL")) nil nil [21242 23433]) ("draw_part" function ("int") (("sx" variable "float" nil nil nil nil [23461 23470]) ("sy" variable "float" nil nil nil nil [23471 23480]) ("x" variable "float" nil nil nil nil [23481 23489]) ("y" variable "float" nil nil nil nil [23490 23498]) ("w" variable "float" nil nil nil nil [23499 23507]) ("h" variable "float" nil nil nil nil [23508 23516]) ("alpha" variable ("Uint8" type "class") nil nil nil nil [23517 23529]) ("effect" variable ("Uint32" type "class") nil nil nil nil [23530 23544])) ((parent . "SurfaceSDL")) nil nil [23435 25768]) ("draw_stretched" function ("int") (("x" variable "float" nil nil nil nil [25801 25809]) ("y" variable "float" nil nil nil nil [25810 25818]) ("sw" variable "int" nil nil nil nil [25819 25826]) ("sh" variable "int" nil nil nil nil [25827 25834]) ("alpha" variable ("Uint8" type "class") nil nil nil nil [25835 25847]) ("effect" variable ("Uint32" type "class") nil nil nil nil [25848 25862])) ((parent . "SurfaceSDL")) nil nil [25770 26680]) ("apply_filter" function ("void") (("filter" variable "int" nil nil nil nil [26712 26723]) ("color" variable ("Color" type "class") nil nil nil nil [26724 26736])) ((parent . "SurfaceSDL")) nil nil [26682 26842]) ("SurfaceSDL" function "void" nil ((parent . "SurfaceSDL") (destructor . t)) nil nil [26844 26872])) - :unmatched-syntax 'nil - ) - (semanticdb-table "font.h" - :file "font.h" - :pointmax 2943 - :major-mode 'c++-mode - :tokens '(("SUPERTUX_FONT_H" variable nil nil ((const . t)) nil nil [887 913]) ("string" include t nil nil [912 929]) ("stdint.h" include t nil nil [930 949]) ("video/surface.h" include nil nil nil [951 977]) ("math/vector.h" include nil nil nil [978 1002]) ("FontAlignment" type "enum" (("LEFT_ALLIGN" variable "int" nil ((const . t)) nil ((reparse-symbol . enumsubparts)) [1027 1039]) ("CENTER_ALLIGN" variable "int" nil ((const . t)) nil ((reparse-symbol . enumsubparts)) [1042 1056]) ("RIGHT_ALLIGN" variable "int" nil ((const . t)) nil ((reparse-symbol . enumsubparts)) [1059 1073])) nil nil nil nil [1004 1074]) ("Font" type "class" (("public" label ((reparse-symbol . classsubparts)) [1089 1096]) ("FontType" type "enum" (("TEXT" variable "int" nil ((const . t)) nil ((reparse-symbol . enumsubparts)) [1119 1124]) ("NUM" variable "int" nil ((const . t)) nil ((reparse-symbol . enumsubparts)) [1158 1194])) nil nil nil ((reparse-symbol . classsubparts)) [1099 1195]) ("Font" function ("Font" type "class") (("file" variable ("std::string" type "class") nil ((const . t)) nil nil [1206 1230]) ("type" variable ("FontType" type "class") nil nil nil nil [1231 1245]) ("w" variable "int" nil nil nil nil [1246 1252]) ("h" variable "int" nil nil nil nil [1253 1259]) ("shadowsize" variable "int" "2" nil nil nil [1267 1283])) ((constructor . t) (prototype . t)) nil ((reparse-symbol . classsubparts)) [1201 1285]) ("Font" function "void" nil ((destructor . t) (prototype . t)) nil ((reparse-symbol . classsubparts)) [1288 1296]) ("get_text_width" function ("float") (("text" variable ("std::string" type "class") nil ((const . t)) nil nil [1522 1546])) ((prototype . t)) nil ((reparse-symbol . classsubparts)) [1501 1553]) ("get_text_height" function ("float") (("text" variable ("std::string" type "class") nil ((const . t)) nil nil [1888 1912])) ((prototype . t)) nil ((reparse-symbol . classsubparts)) [1866 1919]) ("get_height" function ("float") nil ((prototype . t)) nil ((reparse-symbol . classsubparts)) [1960 1985]) ("draw" function ("void") (("text" variable ("std::string" type "class") nil ((const . t)) nil nil [2134 2158]) ("pos" variable ("Vector" type "class") nil ((const . t)) nil nil [2159 2177]) ("allignment" variable ("FontAlignment" type "class") "LEFT_ALLIGN," nil nil nil [2190 2229]) ("drawing_effect" variable ("uint32_t" type "class") "NONE_EFFECT," nil nil nil [2242 2280]) ("alpha" variable ("uint8_t" type "class") "255" nil nil nil [2281 2300])) ((prototype . t)) nil ((reparse-symbol . classsubparts)) [2124 2308]) ("private" label ((reparse-symbol . classsubparts)) [2312 2320]) ("DrawingContext" type "class" nil nil nil nil ((reparse-symbol . classsubparts)) [2330 2351]) ("draw_text" function ("void") (("text" variable ("std::string" type "class") nil ((const . t)) nil nil [2372 2396]) ("pos" variable ("Vector" type "class") nil ((const . t)) nil nil [2397 2415]) ("drawing_effect" variable ("uint32_t" type "class") "NONE_EFFECT," nil nil nil [2433 2471]) ("alpha" variable ("uint8_t" type "class") "255" nil nil nil [2472 2491])) ((prototype . t)) nil ((reparse-symbol . classsubparts)) [2357 2499]) ("draw_chars" function ("void") (("pchars" variable ("Surface" type "class") nil ((pointer . 1)) nil nil [2521 2537]) ("text" variable ("std::string" type "class") nil ((const . t)) nil nil [2538 2562]) ("position" variable ("Vector" type "class") nil ((const . t)) nil nil [2581 2604]) ("drawing_effect" variable ("uint32_t" type "class") nil nil nil nil [2605 2629]) ("alpha" variable ("uint8_t" type "class") nil nil nil nil [2630 2644])) ((prototype . t)) nil ((reparse-symbol . classsubparts)) [2505 2651]) ("chars" variable ("Surface" type "class") nil ((pointer . 1)) nil nil [2657 2672]) ("shadow_chars" variable ("Surface" type "class") nil ((pointer . 1)) nil nil [2675 2697]) ("type" variable ("FontType" type "class") nil nil nil nil [2700 2714]) ("w" variable "int" nil nil nil nil [2717 2723]) ("h" variable "int" nil nil nil nil [2726 2732]) ("shadowsize" variable "int" nil nil nil nil [2735 2750]) ("first_char" variable "int" nil nil nil nil [2828 2843]) ("last_char" variable "int" nil nil nil nil [2917 2931])) nil nil nil nil [1076 2934])) - :unmatched-syntax '((FRIEND 2323 . 2329)) - ) - (semanticdb-table "font.cpp" - :file "font.cpp" - :pointmax 4862 - :major-mode 'c++-mode - :tokens '(("config.h" include t nil nil [865 884]) ("cstdlib" include t nil nil [886 904]) ("cstring" include t nil nil [905 923]) ("stdexcept" include t nil nil [924 944]) ("app/globals.h" include nil nil nil [946 970]) ("lisp/parser.h" include nil nil nil [971 995]) ("lisp/lisp.h" include nil nil nil [996 1018]) ("screen.h" include nil nil nil [1019 1038]) ("font.h" include nil nil nil [1039 1056]) ("drawing_context.h" include nil nil nil [1057 1085]) ("Font" function ("Font" type "class") (("file" variable ("std::string" type "class") nil ((const . t)) nil nil [1125 1149]) ("ntype" variable ("FontType" type "class") nil nil nil nil [1150 1165]) ("nw" variable "int" nil nil nil nil [1166 1173]) ("nh" variable "int" nil nil nil nil [1174 1181]) ("nshadowsize" variable "int" nil nil nil nil [1190 1206])) ((parent . "Font") (constructor . t)) nil nil [1114 2067]) ("Font" function "void" nil ((parent . "Font") (destructor . t)) nil nil [2069 2125]) ("get_text_width" function ("float") (("text" variable ("std::string" type "class") nil ((const . t)) nil nil [2154 2178])) ((parent . "Font")) nil nil [2127 2501]) ("get_text_height" function ("float") (("text" variable ("std::string" type "class") nil ((const . t)) nil nil [2531 2555])) ((parent . "Font")) nil nil [2503 2789]) ("get_height" function ("float") nil ((parent . "Font")) nil nil [2791 2837]) ("draw" function ("void") (("text" variable ("std::string" type "class") nil ((const . t)) nil nil [2855 2879]) ("pos_" variable ("Vector" type "class") nil ((const . t)) nil nil [2880 2899]) ("alignment" variable ("FontAlignment" type "class") nil nil nil nil [2900 2924]) ("drawing_effect" variable ("uint32_t" type "class") nil nil nil nil [2929 2953]) ("alpha" variable ("uint8_t" type "class") nil nil nil nil [2954 2968])) ((parent . "Font")) nil nil [2839 3770]) ("draw_text" function ("void") (("text" variable ("std::string" type "class") nil ((const . t)) nil nil [3793 3817]) ("pos" variable ("Vector" type "class") nil ((const . t)) nil nil [3818 3836]) ("drawing_effect" variable ("uint32_t" type "class") nil nil nil nil [3842 3866]) ("alpha" variable ("uint8_t" type "class") nil nil nil nil [3867 3881])) ((parent . "Font")) nil nil [3772 4080]) ("draw_chars" function ("void") (("pchars" variable ("Surface" type "class") nil ((pointer . 1)) nil nil [4104 4120]) ("text" variable ("std::string" type "class") nil ((const . t)) nil nil [4121 4145]) ("pos" variable ("Vector" type "class") nil ((const . t)) nil nil [4146 4164]) ("drawing_effect" variable ("uint32_t" type "class") nil nil nil nil [4182 4206]) ("alpha" variable ("uint8_t" type "class") nil nil nil nil [4207 4221])) ((parent . "Font")) nil nil [4082 4861])) - ) - ) - ) diff --git a/src/video/surface.cpp b/src/video/surface.cpp index e686a6555..823e23a1c 100644 --- a/src/video/surface.cpp +++ b/src/video/surface.cpp @@ -550,7 +550,7 @@ SurfaceOpenGL::create_gl(SDL_Surface * surf, GLuint * tex) // is present store in RGB instead of RGBA, this saves a few bytes // of memory, but much more importantly it makes the game look // *much* better in 16bit color mode - int internal_format = GL_RGBA/*GL_RGB10_A2*/; + int internal_format = GL_RGBA; bool has_alpha = false; unsigned char* buf = static_cast(conv->pixels);