vitasdk
Documentation of the vitasdk
pgf.h File Reference
#include <vitasdk/build_utils.h>
#include <psp2/types.h>

Go to the source code of this file.

Data Structures

struct  SceFontNewLibParams
 
struct  SceFontImageRect
 
struct  SceFontGlyphImage
 
struct  SceFontStyle
 
struct  SceFontCharInfo
 
struct  SceFontInfo
 

Typedefs

typedef void * SceFontLibHandle
 
typedef void * SceFontHandle
 

Enumerations

enum  SceFontErrorCode {
  SCE_FONT_ERROR_OUT_OF_MEMORY = 0x80460001 , SCE_FONT_ERROR_INVALID_LIBID = 0x80460002 , SCE_FONT_ERROR_INVALID_PARAMETER = 0x80460003 , SCE_FONT_ERROR_HANDLER_OPEN_FAILED = 0x80460005 ,
  SCE_FONT_ERROR_TOO_MANY_OPEN_FONTS = 0x80460009 , SCE_FONT_ERROR_INVALID_FONT_DATA = 0x8046000A
}
 
enum  SceFontFamilyCode { SCE_FONT_FAMILY_DEFAULT = 0 , SCE_FONT_FAMILY_SANS_SERIF = 1 , SCE_FONT_FAMILY_SERIF = 2 , SCE_FONT_FAMILY_ROUNDED = 3 }
 
enum  SceFontStyleCode {
  SCE_FONT_STYLE_DEFAULT = 0 , SCE_FONT_STYLE_REGULAR = 1 , SCE_FONT_STYLE_ITALIC = 2 , SCE_FONT_STYLE_NARROW = 3 ,
  SCE_FONT_STYLE_NARROW_ITALIC = 4 , SCE_FONT_STYLE_BOLD = 5 , SCE_FONT_STYLE_BOLD_ITALIC = 6 , SCE_FONT_STYLE_BLACK = 7 ,
  SCE_FONT_STYLE_BLACK_ITALIC = 8 , SCE_FONT_STYLE_L = 101 , SCE_FONT_STYLE_M = 102 , SCE_FONT_STYLE_DB = 103 ,
  SCE_FONT_STYLE_B = 104 , SCE_FONT_STYLE_EB = 105 , SCE_FONT_STYLE_UB = 106
}
 
enum  SceFontLanguageCode {
  SCE_FONT_LANGUAGE_DEFAULT = 0 , SCE_FONT_LANGUAGE_JAPANESE = 1 , SCE_FONT_LANGUAGE_LATIN = 2 , SCE_FONT_LANGUAGE_KOREAN = 3 ,
  SCE_FONT_LANGUAGE_CHINESE = 4 , SCE_FONT_LANGUAGE_CJK = 5
}
 
enum  SceFontPixelFormatCode {
  SCE_FONT_PIXELFORMAT_4 = 0 , SCE_FONT_PIXELFORMAT_4_REV = 1 , SCE_FONT_PIXELFORMAT_8 = 2 , SCE_FONT_PIXELFORMAT_24 = 3 ,
  SCE_FONT_PIXELFORMAT_32 = 4
}
 

Functions

 VITASDK_BUILD_ASSERT_EQ (4, SceFontLibHandle)
 
 VITASDK_BUILD_ASSERT_EQ (0x2C, SceFontNewLibParams)
 
 VITASDK_BUILD_ASSERT_EQ (4, SceFontImageRect)
 
 VITASDK_BUILD_ASSERT_EQ (0x18, SceFontGlyphImage)
 
 VITASDK_BUILD_ASSERT_EQ (0xA8, SceFontStyle)
 
 VITASDK_BUILD_ASSERT_EQ (0x3C, SceFontCharInfo)
 
 VITASDK_BUILD_ASSERT_EQ (0x108, SceFontInfo)
 
SceFontLibHandle sceFontNewLib (SceFontNewLibParams *params, unsigned int *errorCode)
 
int sceFontDoneLib (SceFontLibHandle libHandle)
 
SceFontHandle sceFontOpen (SceFontLibHandle libHandle, int index, int mode, unsigned int *errorCode)
 
SceFontHandle sceFontOpenUserMemory (SceFontLibHandle libHandle, void *pMemoryFont, SceSize pMemoryFontSize, unsigned int *errorCode)
 
SceFontHandle sceFontOpenUserFile (SceFontLibHandle libHandle, char *file, int mode, unsigned int *errorCode)
 
int sceFontClose (SceFontHandle fontHandle)
 
int sceFontGetNumFontList (SceFontLibHandle libHandle, unsigned int *errorCode)
 
int sceFontFindOptimumFont (SceFontLibHandle libHandle, SceFontStyle *fontStyle, unsigned int *errorCode)
 
int sceFontFindFont (SceFontLibHandle libHandle, SceFontStyle *fontStyle, unsigned int *errorCode)
 
int sceFontGetFontInfo (SceFontHandle fontHandle, SceFontInfo *fontInfo)
 
int sceFontGetFontInfoByIndexNumber (SceFontLibHandle libHandle, SceFontStyle *fontStyle, int unknown, int fontIndex)
 
int sceFontSetResolution (SceFontLibHandle libHandle, float hRes, float vRes)
 
int sceFontGetFontList (SceFontLibHandle libHandle, SceFontStyle *fontStyle, int numFonts)
 
int sceFontGetCharInfo (SceFontHandle fontHandle, unsigned int charCode, SceFontCharInfo *charInfo)
 
int sceFontGetCharImageRect (SceFontHandle fontHandle, unsigned int charCode, SceFontImageRect *charRect)
 
int sceFontGetCharGlyphImage (SceFontHandle fontHandle, unsigned int charCode, SceFontGlyphImage *glyphImage)
 
int sceFontGetCharGlyphImage_Clip (SceFontHandle fontHandle, unsigned int charCode, SceFontGlyphImage *glyphImage, int clipXPos, int clipYPos, int clipWidth, int clipHeight)
 
float sceFontPixelToPointH (SceFontLibHandle libHandle, float fontPixelsH, unsigned int *errorCode)
 
float sceFontPixelToPointV (SceFontLibHandle libHandle, float fontPixelsV, unsigned int *errorCode)
 
float sceFontPointToPixelH (SceFontLibHandle libHandle, float fontPointsH, unsigned int *errorCode)
 
float sceFontPointToPixelV (SceFontLibHandle libHandle, float fontPointsV, unsigned int *errorCode)
 
int sceFontSetAltCharacterCode (SceFontLibHandle libHandle, unsigned int charCode)
 
int sceFontFlush (SceFontHandle fontHandle)