mirror of
https://github.com/h4zesec/OrbisTTY.git
synced 2026-10-06 13:00:15 +02:00
Create README.md
This commit is contained in:
1 parent
bd1f13b198
commit
d4603686fe
1 file changed
+28
@@ -0,0 +1,28 @@
|
||||
# OrbisTTY
|
||||
|
||||
OrbisTTY is a simple terminal-style text renderer for **PlayStation 4 homebrew** that provides a `printf`-like interface using **sceVideoOut** and **FreeType**.
|
||||
|
||||
## Features
|
||||
|
||||
- `printf`-style text output
|
||||
- Automatic line scrolling
|
||||
- FreeType font rendering
|
||||
- Double buffered rendering
|
||||
- Lightweight and easy to integrate
|
||||
|
||||
## Example
|
||||
|
||||
```cpp
|
||||
#include "OrbisTTY.h"
|
||||
|
||||
#define printf(...) OrbisTTY::orbis_printf(__VA_ARGS__)
|
||||
|
||||
int main() {
|
||||
if (!OrbisTTY::init("/app0/assets/fonts/Inconsolata-Regular.ttf"))
|
||||
return 1;
|
||||
|
||||
for (int i = 0; ; i++)
|
||||
printf("Homebrew counter %d", i);
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in new issue
Block a user