diff --git a/inc/hgl/2d/Bitmap.h b/inc/hgl/2d/Bitmap.h index 2e2fdd2..0dae33b 100644 --- a/inc/hgl/2d/Bitmap.h +++ b/inc/hgl/2d/Bitmap.h @@ -159,6 +159,40 @@ namespace hgl delete[] temp; } + + void PutPixel(int x,int y,const T *color) + { + if(!data||!color)return; + + if(x<0||y<0||x>=width||y>=height)return; + + T *p=data+(y*width+x)*CHANNELS; + + for(uint i=0;i=width||y>=height)return(false); + + T *p=data+(y*width+x)*CHANNELS; + + for(uint i=0;i class Bitmap using BitmapR8 =Bitmap;