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.
18 lines
384 B
18 lines
384 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);
|
|
void ASwapBuffers(HDC dc);
|