You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 15, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: source/dsge.hpp
+106-7Lines changed: 106 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -47,32 +47,88 @@ namespace _internal {
47
47
void_renderDebugText();
48
48
}
49
49
50
-
// The external color for dsge.
50
+
/**
51
+
* @brief The external color for dsge.
52
+
*
53
+
* You cannot modify this, if you do, something may go wrong with the look of the colors and it may not look right.
54
+
*
55
+
* #### Example Usage:
56
+
* ```
57
+
* // Getting the green color:
58
+
* dsge::dsgeColor.green // -> 0xff008000;
59
+
*
60
+
* // Getting the yellow color:
61
+
* dsge::dsgeColor.yellow // -> 0xff00ffff;
62
+
* ```
63
+
*/
51
64
extern color dsgeColor;
52
65
53
-
// Represents the amount of time in milliseconds that passed since last frame.
66
+
/**
67
+
* @brief Represents the amount of time in milliseconds that passed since last frame.
68
+
*
69
+
* You cannot modify this, since it always updates the variable every `dsge::Render()`
70
+
*
71
+
* #### Example Usage:
72
+
* ```
73
+
* // Run the rendering process
74
+
* dsge::Render([&]() {
75
+
* // Do something
76
+
* });
77
+
*
78
+
* print(dsge::elapsed); // Returns the amount of time in millis
79
+
* ```
80
+
*/
54
81
externu64 elapsed;
55
82
56
83
/**
57
84
* @brief Current background hex color when using the dsge::Render function.
58
85
*
59
86
* Be careful, if you are debugging and want to set the background color to white, the print output will blend with all of the whiteness! But not to fear, it'll output in the bottom screen instead.
87
+
*
88
+
* #### Example Usage:
89
+
* ```
90
+
* // Setting bgColor to something else:
91
+
*
92
+
* dsge::bgColor = dsge::dsgeColor.red; // Sets color to red
93
+
* ```
60
94
*/
61
95
externu32 bgColor;
62
96
63
97
/**
64
-
* Initializes dsge and bring back the lives of your own 3DS Games.
98
+
* @brief Initializes dsge and bring back the lives of your own 3DS Games.
65
99
*
66
100
* Note that if you try to initialize the same function again, there's likely bad things that is gonna happen so don't trigger twice!
101
+
*
102
+
* #### Example Usage:
103
+
* ```
104
+
* #include <dsge.hpp>
105
+
*
106
+
* int main() {
107
+
* dsge::init(); // Here is where you init!
108
+
*
109
+
* // Rest of the functions below...
110
+
* }
111
+
* ```
67
112
*/
68
113
voidinit();
69
114
70
115
/**
71
-
* Exits all of the needed libraries that DSGE needs
116
+
* @brief Exits all of the needed libraries that DSGE needs
72
117
*
73
-
* Note that you must initialize this first, there's likely bad things that is gonna happen so don't trigger twice!
118
+
* Note that you must initialize this to the very last of `int main`, especially `return dsge::exit()`.
74
119
*
75
120
* It always returns 0 no matter if it's a serious error.
0 commit comments