Jump to content

Vida Marcell

Members
  • Posts

    320
  • Joined

  • Last visited

Posts posted by Vida Marcell

  1. 16 minutes ago, aiaf said:

    Guess any of that would do for intro.

    What i recommend is to make sure it uses the Opengl 3 api , dont think is any point to learn opengl2 this days.

     

    And then you can go for a book. like the Opengl Superbible ,

    i think it always gets updated with the latest developments.

     

    Allright, thanks

  2. Hi everyone, i finished my UAK ui, and now i have to implement 3d graphics to my project, i wanted to use Directx, but i changed my mind, because if i use DX the cross platform capability of UAK would gone, so i choosed OpenGl. Now the question is, wich course should i choose from below, i know that there are courses that are free, but i want to go with one of these:

    Modern OpenGL C++ 3D Game Tutorial Series & 3D Rendering | Udemy

    OpenGL + C++: Modern Graphics for Groundbreaking Games | Udemy

    Learn Modern OpenGL Programming | Udemy

    thanks for the answers!

  3. #include "UltraEngine.h"
    
    using namespace UltraEngine;
    
    const int STATUSBARHEIGHT = 32;
    const int SIDEPANELWIDTH = 300;
    const int CONSOLEHEIGHT = 120;
    
    int main(int argc, const char* argv[])
    {
        //Get the displays
        auto displays = GetDisplays();
    
        //Create a window
        auto window = CreateWindow("Ultra Engine", 0, 0, 920, 680, displays[0]);
    
        //Create User Interface
        auto ui = CreateInterface(window);
        iVec2 sz = ui->root->ClientSize();
    
        auto mainmenu = CreateMenu("", ui->root);
        mainmenu->SetColor(0, 1, 1);
    
        auto statusbar = CreatePanel(0, sz.y - STATUSBARHEIGHT, sz.x, STATUSBARHEIGHT, ui->root);
        statusbar->SetLayout(1, 1, 0, 1);
        statusbar->SetColor(0, 1, 0);
    
        auto mainpanel = CreatePanel(0, mainmenu->position.y + mainmenu->size.y, sz.x, sz.y - mainmenu->size.y - mainmenu->position.y - statusbar->size.y, ui->root);
        mainpanel->SetLayout(1, 1, 1, 1);
        sz = mainpanel->ClientSize();
        mainpanel->SetColor(0, 0, 1);
    
        auto sidepanel = CreatePanel(sz.x - SIDEPANELWIDTH, 0, SIDEPANELWIDTH, sz.y, mainpanel);
        sidepanel->SetLayout(0, 1, 1, 1);
        sidepanel->SetColor(1, 0, 0);
    
        while (window->Closed() == false)
        {
            WaitEvent();
        }
        return 0;
    }

    image.thumb.png.1e4a1973c0269fd14a7e74ab9985ae95.png

×
×
  • Create New...