- nom
- Pixel
OMG, they still do pixels?! More...
#include <Pixel.hpp>
Public Member Functions | |
| Pixel (const Coords &coords, const Color &color) | |
| Pixel (int32 x, int32 y, const Color &color) | |
| void | Update (void) |
| void | Draw (SDL_Surface *video_buffer) const |
Public Member Functions inherited from nom::IDrawable | |
| IDrawable (void) | |
| Do nothing at all default constructor. | |
| virtual | ~IDrawable (void) |
| Do nothing at all destructor. | |
| virtual void | update (void)=0 |
| virtual void | draw (RenderTarget) const =0 |
| Render the object onto the primary video buffer – your visible screen. | |
Private Attributes | |
| Coords | coords |
| Color | color |
Additional Inherited Members | |
Public Types inherited from nom::IDrawable | |
|
typedef std::unique_ptr < IDrawable > | UniquePtr |
| std::unique_ptr definition type for your convenience, sir! | |
|
typedef std::shared_ptr < IDrawable > | SharedPtr |
| std::shared_ptr definition type at your leisure, sir! | |
|
typedef std::vector < std::shared_ptr< IDrawable > > | SharedDrawables |
| Vector of std::shared_ptr definition type for the brotherhood, sir! | |
|
typedef std::vector < std::unique_ptr< IDrawable > > | UniqueDrawables |
| std::unique_ptr vector container type | |
| typedef const Window & | RenderTarget |
| void nom::Pixel::Draw | ( | SDL_Surface * | video_buffer | ) | const |