PDA

View Full Version : MLlib 1.2



wraggster
December 24th, 2009, 21:36
MLlib 1.2 released by Minishlink

The MLlib (or Minishlink's Library) is a simple library to develop on Nintendo Wii. Technically, it's a wrapper of libogc and others librairies. Coding with this lib on Wii is way easier and faster now ! :-) I created this because I needed a library with I could code with easy functions. It uses GX for drawing, libpng for handling PNG, FreeTypeGX for TTF fonts (I needed to recode it in C) and libs of libogc...

Update History
1.2 - December 24, 2009
Compatible with DevkitPPC r19 and libogc 1.8.1. Go update them ! :) TTF Font support, at last ! :) Collisions detection functions ! :)

added: float ML_Distance(x1, y1, x2, y2)
added: float ML_TrueDistance(x1, y1, x2, y2)
added: bool ML_IsCollisionSpriteRect(sprite, x, y, width, height)
added: bool ML_IsCollisionSpriteCircle(sprite, centerX, centerY, radius)
added: bool ML_IsCollisionRectRect(x1, y1, width1, height1, x2, y2, width2, height2)
added: bool ML_IsCollisionCircleCircle(centerX1, centerY1, radius1, centerX2, centerY2, radius2)
added: bool ML_IsCollisionRectCircle(x, y, width, height, centerX, centerY, radius)
added: ML_Font structure
added: ML_InitFont()
added: ML_QuitFont()
added: ML_DeleteFont(ML_Font *font)
added: ML_LoadFontFromBuffer(ML_Font *font, const uint8_t *filename, FT_Long bufferSize, FT_UInt pointSize)
added: ML_LoadFontFromFile(ML_Font *font, const char *filename, FT_UInt pointSize)
added: ML_DrawText(ML_Font *font, int x, int y, char *text, ...) (arguments are not currently working though)
fixed: relative paths now working
fixed: ML_ShutdownWii() now freeing like ML_Exit()
fixed: ML_ReturnToWii() now freeing like ML_Exit()

http://wiibrew.org/wiki/MLlib