J'ai commencé une petite lib (rien d'extraordinaire).
/*
* Double buffer management.
*/
// Init the double buffering managements.
extern void InitScreen(unsigned short screenWidth, unsigned short screenHeight, unsigned char screenDepth);
// Init the double buffering for TI-Nspire CX.
extern void InitScreenNspireCX();
// Swap the screens.
extern void SwapScreen(void);
/*
* Clear screen management.
*/
// Clear screen with a color.
extern void ClearScreenWithColor(unsigned short int color);
// Clear screen in black.
extern void ClearScreenBlack(void);
// Clear screen in white.
extern void ClearScreenWhite(void);
/*
* Drawing functions.
*/
// Set a pixel with a color.
extern void SetPixel(int x, int y, unsigned short int color);
// Get a pixel color.
extern void GetPixel(int x, int y, unsigned short int color);
// Draw a line with a specific color (Bresenham's line algorithm).
extern void DrawLine(int x0, int y0, int x1, int y1, unsigned short int color);
// Draw a rect.
extern void DrawRect(int x, int y, int width, int height, unsigned short int color);
// Draw a filled rect.
extern void DrawRectFill(int x, int y, int width, int height, unsigned short int color);
// Draw a circle.
extern void DrawCircle(int x, int y, int r, unsigned short int color);
// Draw a sprite.
extern void DrawSprite(int x, int y, int sizeX, int sizeY);
Hier j'ai fini le draw sprite (unsecure, pas de blit, ni de clip)
Ducoup le "Plop from inside" est dispo sur la CX.