2017-08-30 18:31:27 -04:00
|
|
|
#pragma once
|
|
|
|
#include "stdafx.h"
|
|
|
|
#include "DrawCommand.h"
|
|
|
|
|
|
|
|
class DrawPixelCommand : public DrawCommand
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
int _x, _y, _color;
|
|
|
|
|
|
|
|
protected:
|
|
|
|
void InternalDraw()
|
|
|
|
{
|
|
|
|
DrawPixel(_x, _y, _color);
|
|
|
|
}
|
|
|
|
|
|
|
|
public:
|
|
|
|
DrawPixelCommand(int x, int y, int color, int frameCount) :
|
2017-08-30 19:36:20 -04:00
|
|
|
DrawCommand(frameCount), _x(x), _y(y), _color(color)
|
2017-08-30 18:31:27 -04:00
|
|
|
{
|
|
|
|
if(!(_color & 0xFF000000)) {
|
|
|
|
_color |= 0xFF000000;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|