Question: I need help with the error im getting. #include RasterSurface.h #include RasterSurface.cpp #include XTime.h #include XTime.cpp #include tiles _ 1 2
I need help with the error im getting.
#include "RasterSurface.h
#include "RasterSurface.cpp
#include "XTime.h
#include "XTime.cpp
#include "tilesh
#include
bool RSInitializeconst charstudentName, unsigned int width, unsigned int height;
bool RSUpdateconst unsigned intxrgbPixels, const unsigned int numPixels;
bool RSShutdownvoid;
void ClearBufferstd::vector& buffer, unsigned int color
std::fillbufferbegin buffer.end color;
unsigned int ConvertDToDunsigned int x unsigned int y unsigned int width
return y width x;
void DrawPixelstd::vector& buffer, unsigned int x unsigned int y unsigned int width, unsigned int color
bufferConvertDToDx y width color;
void Blitstd::vector& buffer, unsigned int width, unsigned int image, unsigned int imgWidth, unsigned int imgHeight, unsigned int startX, unsigned int startY
for unsigned int y ; y imgHeight; y
for unsigned int x ; x imgWidth; x
bufferConvertDToDstartX x startY y width imageConvertDToDx y imgWidth;
int main
const char studentName "Your Name";
unsigned int width ;
unsigned int height ;
if RSInitializestudentName width, height
return ;
std::vector pixelbufferwidth height, xFFFFFFFF; Initialize with white color
while RSUpdatepixelbuffer.data pixelbuffer.size
ClearBufferpixelbuffer, xFF; Clear to black
Draw a pixel at
DrawPixelpixelbuffer, width, xFFFF;
Blitpixelbuffer, width, tilespixels, tileswidth, tilesheight, ;
RSShutdown;
return ;
and the error is with the tilespixel and the error message says "argument of type "const unsigned int is incompatiable with parameter of type unsigned int it is error code E
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
