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.

19 lines
417 B

4 years ago
  1. #pragma once
  2. #include <windows.h>
  3. typedef unsigned int AUint;
  4. typedef unsigned char AByte;
  5. struct RenderableBuffer {
  6. HDC mDC;
  7. HBITMAP mBitmap;
  8. AUint* mColorBuffer;
  9. int mWidth;
  10. int mHeight;
  11. int mPixelCount;
  12. };
  13. void InitRenderableBuffer(HDC dc, int width, int height);
  14. void SetColor(int x, int y, AByte r, AByte g, AByte b, AByte a);
  15. void ASwapBuffers(HDC dc);
  16. float randf();
  17. float srandf();