Switch to C++
This commit is contained in:
14
ui/base.h
14
ui/base.h
@@ -1,10 +1,14 @@
|
||||
#ifndef UI_BASE_H_
|
||||
#define UI_BASE_H_
|
||||
|
||||
/**
|
||||
* Prints the string text starting at position *x, *y. x and y are updated to
|
||||
* the position after the last character
|
||||
*/
|
||||
void draw_text(int *x, int *y, char *text);
|
||||
#include <string>
|
||||
|
||||
namespace ui {
|
||||
/**
|
||||
* Prints the string text starting at position *x, *y. x and y are updated to
|
||||
* the position after the last character
|
||||
*/
|
||||
void draw_text(const std::string text, int *x, int *y);
|
||||
|
||||
} // namespace ui
|
||||
#endif // UI_BASE_H_
|
||||
|
||||
Reference in New Issue
Block a user