Some recommandation of namespacing change
This commit is contained in:
parent
80f4796eec
commit
e438b70f0e
@ -32,6 +32,44 @@
|
||||
|
||||
namespace ewol
|
||||
{
|
||||
// TODO : Create a subNameSpace:
|
||||
/*
|
||||
namespace font {
|
||||
// set default folder name of the font :
|
||||
void SetFolder(etk::String folderName);
|
||||
void SetDefault(etk::String fontName, int32_t size);
|
||||
// unload all font loaded
|
||||
void Init(void);
|
||||
void UnInit(void);
|
||||
// load the fonts...
|
||||
int32_t Load(etk::String fontName, int32_t size); // return ID of font
|
||||
int32_t GetDefaultId(void);
|
||||
void Unload(int32_t id);
|
||||
|
||||
// get the size of a long string in UTF8 (note that \n and \r represent unknown char...)
|
||||
int32_t GetWidth(int32_t fontID, const uniChar_t * unicodeString);
|
||||
int32_t GetWidth(int32_t fontID, const char * utf8String);
|
||||
int32_t GetHeight(int32_t fontID);
|
||||
|
||||
|
||||
void DrawText(int32_t fontID,
|
||||
coord2D_ts & drawPosition,
|
||||
const char * utf8String,
|
||||
uint32_t & fontTextureId,
|
||||
etk::VectorType<coord2D_ts> & coord,
|
||||
etk::VectorType<texCoord_ts> & coordTex);
|
||||
|
||||
void DrawText(int32_t fontID,
|
||||
coord2D_ts & drawPosition,
|
||||
const uniChar_t * unicodeString,
|
||||
uint32_t & fontTextureId,
|
||||
etk::VectorType<coord2D_ts> & coord,
|
||||
etk::VectorType<texCoord_ts> & coordTex);
|
||||
|
||||
int32_t Load(etk::File fontFileName);
|
||||
void DrawText(etkFloat_t x, etkFloat_t y, const char * myString);
|
||||
};
|
||||
*/
|
||||
// set default folder name of the font :
|
||||
void SetFontFolder(etk::String folderName);
|
||||
void SetDefaultFont(etk::String fontName, int32_t size);
|
||||
|
@ -31,6 +31,14 @@
|
||||
|
||||
namespace ewol
|
||||
{
|
||||
// TODO : Create a subNameSpace:
|
||||
/*
|
||||
namespace texture {
|
||||
int32_t Load(etk::File fileName);
|
||||
void UnLoad(uint32_t textureID);
|
||||
int32_t GetSize(uint32_t textureID);
|
||||
};
|
||||
*/
|
||||
int32_t LoadTexture(etk::File fileName);
|
||||
void UnLoadTexture(uint32_t textureID);
|
||||
int32_t GetTextureSize(uint32_t textureID);
|
||||
|
Loading…
x
Reference in New Issue
Block a user