first
This commit is contained in:
56
source/editor.c
Normal file
56
source/editor.c
Normal file
@@ -0,0 +1,56 @@
|
||||
#ifndef EDITOR_H
|
||||
#define EDITOR_H
|
||||
|
||||
#include <tart.h>
|
||||
|
||||
struct tart_window window;
|
||||
|
||||
|
||||
struct commandMode {
|
||||
struct tart_cstring prompt_cstr;
|
||||
struct tart_cstring input_cstr;
|
||||
|
||||
char inputBuffer[255];
|
||||
int inputBufferIdx;
|
||||
char* input;
|
||||
};
|
||||
|
||||
struct InsertMode {
|
||||
};
|
||||
|
||||
void Create_commandMode();
|
||||
|
||||
void CreateWindow() {
|
||||
|
||||
}
|
||||
|
||||
void InitCommandMode() {
|
||||
}
|
||||
void InitInsertMode();
|
||||
void InitNormalMode();
|
||||
void InitNomiMode();
|
||||
|
||||
|
||||
void CommandMode(struct CommandMode cmdm) {
|
||||
tart_draw_cstring_position(tart_get_buffer(&window, 0),
|
||||
commandInput_cstr,
|
||||
(struct tart_vec2){16,10});
|
||||
tart_draw_cstring_position(tart_get_buffer(&window, 0),
|
||||
commandPrompt_cstr,
|
||||
(struct tart_vec2){0,10});
|
||||
}
|
||||
void InsertMode();
|
||||
void NormalMode();
|
||||
void NomiMode();
|
||||
|
||||
void Update();
|
||||
|
||||
void UpdateBigin();
|
||||
void UpdateEnd();
|
||||
|
||||
void OnQuit();
|
||||
void OnStart();
|
||||
|
||||
void Draw();
|
||||
|
||||
#endif /* ifndef EDITOR_H */
|
||||
Reference in New Issue
Block a user