#pragma once #include typedef unsigned int AUint; typedef unsigned char AByte; struct RenderableBuffer { HDC mDC; HBITMAP mBitmap; AUint* mColorBuffer; int mWidth; int mHeight; int mPixelCount; }; void InitRenderableBuffer(HDC dc, int width, int height); void SetColor(int x, int y, AByte r, AByte g, AByte b, AByte a); unsigned char* LoadFileContent(const char* path, int& filesize); unsigned char* DecodeBMP(unsigned char* bmp_file, int& width, int& height); void ASwapBuffers(HDC dc); float randf(); float srandf();