![]() |
|
![]() |
![]() |
![]() | Donate | ![]() |
![]() |
![]() |
Ouvrir sur le forum | Recherche | Messages du jour | Marquer les forums comme lus |
Aide au développement Aide sur l'utilisation d'OSLib |
Publicité |
![]() |
|
Outils de la discussion | Modes d'affichage |
![]() |
#1 |
Membre
Date d'inscription: 02/04/2008
Messages: 16
|
![]() Hi,
is there an function to draw an single pixel. Maybe like: void draw_pixel(int x, int y, OSL_COLOR color); I wrote an own function but it dosn' t work: Code:
void draw_pixel(int x, int y, OSL_COLOR color){ oslDrawLine(x, y, x, y, color); } |
![]() |
![]() |
Publicité |
![]() |
#2 |
Modérateur
Date d'inscription: 28/02/2007
Localisation: Grenoble
Messages: 576
|
![]() Check if this work:
Code:
void draw_pixel(int x, int y, OSL_COLOR color){ oslDrawLine(x, y, x+1, y+1, color); }
__________________
|
![]() |
![]() |
![]() |
#3 |
Administrateur
Date d'inscription: 09/11/2005
Messages: 3 750
|
![]() From OSLib documentation :
Code PHP:
|
![]() |
![]() |
![]() |
#4 |
Membre
Date d'inscription: 02/04/2008
Messages: 16
|
![]() But I want to draw directly on the screen, so the other method is better I think.
I know its possible to create an Image an draw all at this, but this needs more RAM. Is it better on this way?? |
![]() |
![]() |
![]() |
Liens sociaux |
Publicité |
Utilisateurs regardant la discussion actuelle : 1 (0 membre(s) et 1 invité(s)) | |
Outils de la discussion | |
Modes d'affichage | |
|
|