I set up a VAO, binding vertex-buffers to it for vertex attributes, but also set index-buffer (With glVertexArrayElementBuffer). Does that restrict it so it only works with glDrawElements type of commands, or will it work with glDrawArrays too?
(Using OpenGL4.5)
OpenGL - Can I draw non-indexed when index-buffer is set for VAO?
323 Views Asked by Newline At
1
There are 1 best solutions below
Related Questions in OPENGL-4
- Shadow not rendered correctly
- Represent 2D array in opengl 4.5
- Switching from 3D to 2D in OpenGL
- OpenGL texture array layer data copy
- Allocate multiple objects at once or not
- Confused with OpenGL 3+ Core functions and Extensions
- Incorrect result when using 3D textures
- offscreen rendering opengl 4.5 multisample FBO
- Precision of glReadPixels when reading unsigned int
- Parralax mapping does not work correctly using OpenGL and GLSL
- Render large circular points in modern OpenGL
- "Failed to make context current." on a computer without Qt
- What are the Attribute locations for fixed function pipeline in OpenGL 4.0++ core profile?
- How to set a unit for an object in OpenGL
- Failing to map a simple unsigned byte rgb texture to a quad:
Related Questions in VERTEX-BUFFER
- How can I properly manage data in modern OpenGL while considering performance?
- Create struct for vertex buffer on DX9
- JOGL - updating vertex coordinates - glMapBuffer always returns null
- Interpolate data buffers using OpenGL?
- Code Assist, OpenGL VAO/VBO Classes not drawing
- OpenGL: problem with vertex indices buffer
- Vertex Buffer Objects Open GL
- DirectX: Small distortion between 2 sprite polygons
- OpenGL: Why these codes draws nothing, with interleaved VBO and GLSL
- Allocating vertex buffer object
- OpenGL changing vertex position
- Ways of drawing vertex ranges in Direct3D
- OpenGL Draw Multiple Vertex Arrays
- When drawing multiple objects, when do you create a new vertex array object?
- Should a new VertexBuffer3D & IndexBuffer3D be created for each Program3D used?
Related Questions in VERTEX-ATTRIBUTES
- glVertexAttribPointer GL_INVALID_OPERATION invalid vao vbo pointer usage
- three.js maintaining creases when smooth shading custom geometry
- OpenGL: Why these codes draws nothing, with interleaved VBO and GLSL
- Not able to get output with glDrawElements() & glMultiDrawElements()
- Passing attributes to OpenGL vertex shader acts strangely
- Textured glDrawElement
- Edge and vertex attributes not mapping properly when constructing networkDynamic object
- OpenGL GLSL Send color as integer to shader to be decomposed as vec4 RGBA
- OpenGL ES on iOS What to set glVertexAttribPointer
- How do I make this simple OpenGL code (works in a "lenient" 3.3 and 4.2 profile) work in a strict 3.2 and 4.2 core profile?
- Clarification on glVertexAttribPointer index paramter
- OpenGL vertex shader is fast on Linux, but extremely slow on Windows
- Using subgraph() and preserving vertex attributes with igraph python
- How to use TigerGraph GSQL to associate data from one Vertex to another Vertex?
- OpenGL - Can I draw non-indexed when index-buffer is set for VAO?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
No.
You can still use non-indexed draw calls like glDrawArrays. The question is whether your vertex topology suits that. glDrawArrays is essentially equal to an indexed draw call with indices [0, 1, 2, 3, 4, 5, ...].