t2setp
Syntax
- int t2setp(int x, int y, int val)
Arguments
- x, y
- Image coordinates
- val
- Pixel value that shall be stored
Return
- Always returns a value of 1
Description
- This function lets you write a whole pixel to the second tile buffer. Using t2setp instead of t2set takes only approximately half as much time. You have to use the RGB or RGBA function to create a pixel value from individual color values. Make sure that the individual color values lie between 0 and 255, otherwise they will be mixed up when passing them to this function.
Example
Also see
- srcp, pgetp, psetp, tgetp, tsetp, t2getp, RGB, RGBA
Comments
- Everyone can add his comments about his experiences with this function here. Tips for using it are welcome, too.