20 lines
393 B
C++
20 lines
393 B
C++
#ifndef WINDOW_PIXEL_MANAGER_H__
|
|||
|
|
#define WINDOW_PIXEL_MANAGER_H__
|
||
|
|
|
||
|
|
#include "WindowWin.h"
|
||
|
|
#include <Windows.h>
|
||
|
|
|
||
|
|
namespace LifeCore {
|
||
|
|
class WindowPixelManager {
|
||
|
|
public:
|
||
|
|
WindowPixelManager(WindowWin* wnd, int bpp);
|
||
|
|
void SetPixels(int width, int height, void* pixels);
|
||
|
|
private:
|
||
|
|
WindowWin* window;
|
||
|
|
BITMAPINFOHEADER bitmapInfo;
|
||
|
|
BITMAPINFO info;
|
||
|
|
HWND hwnd;
|
||
|
|
HDC context;
|
||
|
|
};
|
||
|
|
}
|
||
|
|
#endif
|