Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. triangle
    Log in to post

    • UNSOLVED Qt and OpenGL in Widget: Can't use glDrawArrays
      Game Development • opengl rendering draw shaders triangle • • Clockwork  

      2
      0
      Votes
      2
      Posts
      2592
      Views

      Hi Clockwork I didnt read your code with much attention, but for starters if all you want is draw a triangle, check this tutorials I did https://bitbucket.org/joaodeusmorgado/opengltutorials I'm using vbos, to draw triangles. I'm using all OpenGL native calls, but should be pretty easy to convert to Qt OpenGL functions. I also recommend you this book wich is great, it has a lot of details that usually are ommited in other books http://alfonse.bitbucket.org/oldtut/index.html
    • UNSOLVED How to render a triangle using Qt3D
      General and Desktop • c++ qt3d triangle • • cjsb  

      7
      0
      Votes
      7
      Posts
      4631
      Views

      Hi @cjsb! I've created two small examples. The first example is pure C++. It is exactly you are looking for - https://github.com/iLya84a/qt3d/tree/master/custom-mesh-cpp The second one is a Qml-based app - https://github.com/iLya84a/qt3d/tree/master/custom-mesh-qml
    • how i can create a triangle in class QPainterPath path?
      General and Desktop • qpainterpath triangle • • stackprogramer  

      3
      0
      Votes
      3
      Posts
      1023
      Views

      @Wieland ,nice .......it works ,thanks for reply:)
    • UNSOLVED [QOpenGLWidget] How to port the Qt Hello triangle example with my own shaders?
      General and Desktop • qopenglwidget example shaders triangle • • CamelFrog  

      1
      0
      Votes
      1
      Posts
      1850
      Views

      No one has replied