-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
77 additions
and
53 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,44 @@ | ||
/* | ||
* gApp.h | ||
* | ||
* Created on: May 6, 2020 | ||
* Author: noyan | ||
*/ | ||
* gApp.h | ||
* | ||
* Created on: May 6, 2020 | ||
* Author: noyan | ||
*/ | ||
|
||
#ifndef GAPP_H_ | ||
#define GAPP_H_ | ||
|
||
#include "gBaseApp.h" | ||
|
||
enum CursorType { | ||
kArrow, | ||
kHand, | ||
kHandClosed | ||
}; | ||
|
||
class gApp : public gBaseApp { | ||
public: | ||
gApp(); | ||
gApp(int argc, char **argv); | ||
~gApp(); | ||
public: | ||
gApp(); | ||
gApp(int argc, char **argv); | ||
~gApp(); | ||
|
||
void setup(); | ||
void update(); | ||
|
||
void stop(); | ||
|
||
void SetCursorPos(int x, int y); | ||
void SetCursorType(CursorType type); | ||
void DrawCursor(); | ||
|
||
void setup(); | ||
void update(); | ||
bool loaded_ = false; | ||
|
||
void stop(); | ||
private: | ||
gImage* cursor_; | ||
CursorType cursor_type_ = kArrow; | ||
int cursor_width_, cursor_height_; | ||
int cursor_pos_x_ = -100, cursor_pos_y_ = -100; | ||
|
||
bool loaded_ = false; | ||
}; | ||
|
||
#endif /* GAPP_H_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule znet
updated
from e4233d to 795c57