I am making a c++ SDL based game engine, help me write the doxygen documentation of my…
- User
I am making a c++ SDL based game engine, help me write the doxygen documentation of my Window Class:
First part, the class:
class Window { public: enum class WindowMode { Windowed, Fullscreen, FullscreenBorderless };
- Assistant
Sure, let's get started with documenting your Window class using Doxygen. Doxygen is a great tool for generating documentation from annotated code, and adding annotations is straightforward. For your
Windowclass, you'll want to document the purpose of the class, its members, and the details of the enum. - User
Perfect now lets continue with the first batch of methods:
explicit Window(const std::string& title, int x=SDL_WINDOWPOS_UNDEFINED, int y=SDL_WINDOWPOS_UNDEFINED, int width=640, int height=480, const std::string& iconPath="", bool bordered=true, bool resizable=true, bool visible=true); uint32_t GetWindowID() const; std::string GetWindowTitle() const; void SetWindowTitle(const std::string& title); void SetWindowIcon(const std::string& filePath); void SetWindowBordered(bool bordered); void SetWindowResizable(bool resizable); void SetCursorVisible(bool visible);
- Assistant
- User
Perfect, now the last batch:
int GetWidth() const; void SetWidth(int width); int GetHeight() const; void SetHeight(int height); int GetX() const; void SetX(int x); int GetY() const; void SetY(int y); bool IsVisible() const; void SetVisible(bool visible); bool IsMinimized() const; void SetMinimized(bool minimized); bool IsFullScreen() const; Window::WindowMode GetWindowMode() const; void SetFullScreen(Window::WindowMode mode); bool HasMouseFocus() const; bool HasKeyboardFocus() const;
- Assistant