Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
alexbevi
GitHub Repository: alexbevi/BizHawk
Path: blob/master/libmeteor/include/ameteor/graphics/objects.hpp
2 views
1
// Meteor - A Nintendo Gameboy Advance emulator
2
// Copyright (C) 2009-2011 Philippe Daouadi
3
//
4
// This program is free software: you can redistribute it and/or modify
5
// it under the terms of the GNU General Public License as published by
6
// the Free Software Foundation, either version 3 of the License, or
7
// (at your option) any later version.
8
//
9
// This program is distributed in the hope that it will be useful,
10
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
// GNU General Public License for more details.
13
//
14
// You should have received a copy of the GNU General Public License
15
// along with this program. If not, see <http://www.gnu.org/licenses/>.
16
17
#ifndef __GRAPHICS_OBJECTS_H__
18
#define __GRAPHICS_OBJECTS_H__
19
20
#include "object.hpp"
21
#include "ameteor/memory.hpp"
22
#include "ameteor/io.hpp"
23
24
#include <vector>
25
26
namespace AMeteor
27
{
28
namespace Graphics
29
{
30
class Objects
31
{
32
public :
33
Objects (Memory& memory, Io& io, uint16_t* pPalette);
34
35
void DrawLine (uint8_t line, uint32_t* surface);
36
void DrawLineHighOnly (uint8_t line, uint32_t* surface);
37
void DrawWindow (uint8_t line, uint8_t* surface);
38
39
void OamWrite (uint32_t begin, uint32_t end);
40
void OamWrite16 (uint32_t add);
41
void OamWrite32 (uint32_t add);
42
43
private :
44
typedef std::vector<Object> Objs;
45
46
Io& m_io;
47
Objs m_objs;
48
uint16_t* m_pOam;
49
};
50
}
51
}
52
53
#endif
54
55