WHY_CPP
0.1
Overview
Getting started
Modules
Class List
File List
whycpp
src
sprite.h
1
#pragma once
2
3
#include <whycpp/color.h>
4
#include <whycpp/types.h>
5
#include <memory>
6
#include <vector>
7
8
class
Sprite
{
9
i32 width_;
10
i32 height_;
11
std::vector<std::vector<RGBA>> texture;
12
13
size_t
CheckX(i32 x)
const
;
14
size_t
CheckY(i32 y)
const
;
15
16
public
:
17
Sprite
(i32 width, i32 height);
18
~
Sprite
();
19
i32 GetWidth()
const
;
20
i32 GetHeight()
const
;
21
const
RGBA
&Get(i32 x, i32 y)
const
;
22
void
Set(i32 x, i32 y,
const
RGBA
&color);
23
};
RGBA
Definition:
color.h:11
Sprite
Definition:
sprite.h:8
Generated by
1.8.11