|
PEBL 2.2
Psychology Experiment Building Language - Cross-platform psychological experiment development system
|
#include "PlatformFont.h"#include "../../objects/PFont.h"#include "../../objects/PColor.h"#include "../../utility/PEBLPath.h"#include "../../utility/PError.h"#include "../../base/Evaluator.h"#include "SDL.h"#include "SDL_ttf.h"#include "SDL_rwops.h"#include <stdio.h>#include <iostream>Go to the source code of this file.
Functions | |
| bool | is_utf8 (std::string str) |
| long unsigned int | getFileSize (FILE **file) |
| char * | getFileBuffer (FILE **file, unsigned int fileSize) |
| unsigned long int | readFileToMemory (const char path[], char **buffr) |
| void | RenderTexture (const std::wstring &text) |
| SDL_Surface * | CreateSurfaceFromFT_Bitmap (const FT_Bitmap &bitmap) |
| SDL_Texture * | CreateTextureFromFT_Bitmap (SDL_Renderer *renderer, const FT_Bitmap &bitmap, const SDL_Color &color) |
| void | CalculateSurfaceBound (hb_glyph_info_t *glyph_infos, hb_glyph_position_t *glyph_positions, const unsigned int &glyph_count, const FT_Face &face, SDL_Rect &rect, const FT_Int32 &flags=FT_LOAD_DEFAULT) |
| void | DrawTextHB (conts std::wstring &Text) |
| void CalculateSurfaceBound | ( | hb_glyph_info_t * | glyph_infos, |
| hb_glyph_position_t * | glyph_positions, | ||
| const unsigned int & | glyph_count, | ||
| const FT_Face & | face, | ||
| SDL_Rect & | rect, | ||
| const FT_Int32 & | flags = FT_LOAD_DEFAULT |
||
| ) |
Definition at line 440 of file PlatformFont_RTL.cpp.
Referenced by RenderTexture().
| SDL_Surface * CreateSurfaceFromFT_Bitmap | ( | const FT_Bitmap & | bitmap | ) |
Definition at line 365 of file PlatformFont_RTL.cpp.
Referenced by RenderTexture().
| SDL_Texture * CreateTextureFromFT_Bitmap | ( | SDL_Renderer * | renderer, |
| const FT_Bitmap & | bitmap, | ||
| const SDL_Color & | color | ||
| ) |
Definition at line 401 of file PlatformFont_RTL.cpp.
References NULL.
| void DrawTextHB | ( | conts std::wstring & | Text | ) |
Definition at line 474 of file PlatformFont_RTL.cpp.
References NULL, and PError::SignalFatalError().
| char * getFileBuffer | ( | FILE ** | file, |
| unsigned int | fileSize | ||
| ) |
Definition at line 170 of file PlatformFont_RTL.cpp.
Referenced by readFileToMemory().
| long unsigned int getFileSize | ( | FILE ** | file | ) |
Definition at line 160 of file PlatformFont_RTL.cpp.
Referenced by readFileToMemory().
| bool is_utf8 | ( | std::string | str | ) |
Definition at line 73 of file PlatformFont_RTL.cpp.
Referenced by PEBLUtility::DetectScript().
| unsigned long int readFileToMemory | ( | const char | path[], |
| char ** | buffr | ||
| ) |
Definition at line 176 of file PlatformFont_RTL.cpp.
References getFileBuffer(), getFileSize(), and NULL.
| void RenderTexture | ( | const std::wstring & | text | ) |
Definition at line 272 of file PlatformFont_RTL.cpp.
References CalculateSurfaceBound(), CreateSurfaceFromFT_Bitmap(), and NULL.