Nspire I/O  2.0
 All Data Structures Files Functions Variables
Functions
screen.c File Reference
#include <os.h>
#include "charmap.h"
#include "nspireio2.h"

Functions

void setPixel (int x, int y, unsigned int color)
void putChar (int x, int y, char ch, int bgColor, int textColor)
void putStr (int x, int y, char *str, int bgColor, int textColor)

Detailed Description

Author:
Julian Mackeben aka compu compu.nosp@m.juck.nosp@m.e@goo.nosp@m.glem.nosp@m.ail.c.nosp@m.om
Version:
2.0

LICENSE

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details at http://www.gnu.org/copyleft/gpl.html

DESCRIPTION

Screen functions


Function Documentation

void putChar ( int  x,
int  y,
char  ch,
int  bgColor,
int  textColor 
)

Draws a char to the screen using the charmap.

Parameters:
xX coordinate
yY coordinate
chChar to draw
bgColorBackground color of the character
textColorColor of the character
void putStr ( int  x,
int  y,
char *  str,
int  bgColor,
int  textColor 
)

Draws a string to the screen using the charmap.

Parameters:
xX coordinate
yY coordinate
strString to draw
bgColorBackground color of the character
textColorColor of the character
void setPixel ( int  x,
int  y,
unsigned int  color 
)

Draws a pixel to the screen.

Parameters:
xX coordinate
yY coordinate
colorPixel color