rm old camera

This commit is contained in:
Elizabeth Hunt 2023-11-24 18:19:30 -07:00
parent 9d0dc24025
commit 9e35115be8
Signed by: simponic
GPG Key ID: 52B3774857EB24B1
3 changed files with 19 additions and 19 deletions

View File

@ -1,14 +0,0 @@
#include <cstdint>
#ifndef CAMERA_HPP
#define CAMERA_HPP
class Camera {
private:
std::uint32_t m_pos;
public:
Camera();
};
#endif

View File

@ -1,3 +0,0 @@
#include "Camera.hpp"
Camera::Camera() : m_pos(0) {}

View File

@ -1,13 +1,30 @@
#include "Camera.hpp" #include "palette.hpp"
#include "vector.hpp"
#include <tonc.h> #include <tonc.h>
int main() { int main() {
// interrupt & mode 4 foo
irq_init(NULL); irq_init(NULL);
irq_enable(II_VBLANK); irq_enable(II_VBLANK);
REG_DISPCNT = DCNT_MODE4 | DCNT_BG2;
REG_DISPCNT = DCNT_MODE4; // initialize our palette
palette::put_palette((std::uint16_t *)MEM_PAL);
// begin
bmp16_line(1, 3, 1 + SCREEN_WIDTH / 2 - 2, SCREEN_HEIGHT, 0x0101, vid_page,
SCREEN_WIDTH);
vid_flip();
bmp16_line(2, 3, 2 + SCREEN_WIDTH / 2 - 2, SCREEN_HEIGHT, 0x0101, vid_page,
SCREEN_WIDTH);
std::uint32_t frame = 0;
while (1) { while (1) {
frame = (frame + 1) % 60;
if (frame == 0) {
vid_flip();
}
VBlankIntrWait(); VBlankIntrWait();
} }
} }