Skip to main content

Command Palette

Search for a command to run...

Day 50/100 100 Days of Code

Rebuild Back Better

Updated
1 min read
Day 50/100 100 Days of Code
C

AKA Chris, is a software developer from Athens, Greece. He started programming with basic when he was very young. He lost interest in programming during school years but after an unsuccessful career in audio, he decided focus on what he really loves which is technology.

He loves working with older languages like C and wants to start programming electronics and microcontrollers because he wants to get into embedded systems programming.

I worked on creating a structure for the menu elements. This has been a little more complicated than I wanted and made many mistakes. I wanted to do more today but I am a bit tired. More Tomorrow!

template<typename S, typename T, typename C, typename F, typename R>
struct MenuElement
{
    enum state
    {
        DEACTIVATED = 0,
        ACTIVATED,
        HOVERED
    };

    float x, y;
    int currentState;
    std::string content;
    F *font;
    R *renderer;

    MenuElement(float inputX, float inputY, F *inputFont, R *inputRender);
    void CreateOption(std::string content, float getMouseX, float getMouseY, C inputColor);
};

100 Days of Code

Part 50 of 50

100 days of code is a good initiative to go into hard mode and spend more time in programming. These 100 days will be focused on completing projects and research.

Start from the beginning

Day 1/100 100 Days of Code

Info Hunter