Introduce internal and normal GPU functions
This commit is contained in:
17
include/PSX/GPU/GPU.h
Normal file
17
include/PSX/GPU/GPU.h
Normal file
@@ -0,0 +1,17 @@
|
||||
#ifndef __JABYENGINE_GPU_H__
|
||||
#define __JABYENGINE_GPU_H__
|
||||
#include "../System/IOPorts/GPU_IO.hpp"
|
||||
|
||||
namespace GPU {
|
||||
namespace Display {
|
||||
static void enable() {
|
||||
Port::GP1.write(Port::Command::GP1::SetDisplayState(Port::DisplayState::On));
|
||||
}
|
||||
|
||||
static void disable() {
|
||||
Port::GP1.write(Port::Command::GP1::SetDisplayState(Port::DisplayState::Off));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif //!__JABYENGINE_GPU_H__
|
||||
Reference in New Issue
Block a user