You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

22 lines
560 B

#pragma once
#include <windows.h>
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();