Jump to content
  • Advertisement
Sign in to follow this  
  • entries
    56
  • comments
    80
  • views
    41938

Class Diagram

Sign in to follow this  
bladerunner627

239 views

I've taken a new approach on how to develop the framework, make it simple.

What follows is a fairly detailed, yet incomplete class diagram. I've been thinking about the GUI stuff lately.

The framework is coded in C++, but for the purposes of this class diagram and readability the syntax is not quite C++.

Class Diagram:
    namespace Odorless
      namespace Framework
        namespace UI
          namespace Windows
            class WindowManager
              public WindowManager();
              public ~WindowManager();
              public void AddWindow(const Window& window);
              public void RemoveWindow(const unsigned int& index);
              public void Update(const float& dt);
              public void Render(const float& dt);
              private std::vector _vecWindows;
            class Window
              public Window();
              public ~Window();
              public void AddWidget(const UI::Widgets::Widget& widget);
              public void RemoveWidget(const unsigned int& index);
              public virtual int Initialize() = 0;
              public virtual void Dispose() = 0;
              public virtual void Update(const float& dt) = 0;
              public virtual void Render(const float& dt) = 0;
              private std::vector _vecWidgets;
              private float _2fDimensions[2];
              private float _2fPosition[2];
              private unsigned int _uiFgColor;
              private unsigned int _uiBgColor;
          namespace Widgets
            class Widget
              public Widget();
              public ~Widget();
              public virtual void Initialize() = 0;
              public virtual void Dispose() = 0;
              public virtual void Update(const float& dt) = 0;
              public virtual void Render(const float& dt) = 0;
              private float _2fDimensions[2];
              private float _2fPosition[2];
              private unsigned int _uiFgColor;
              private unsigned int _uiBgColor;



I'll write some comments and explanations once it's a little more developed.
Sign in to follow this  


0 Comments


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!