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?
325 views Asked by Newline At
1
There are 1 answers
Related Questions in OPENGL-4
- My Visual Studio 2022 consistently gives me errors saying that the GLchar variable type is undefined
- How do I get glBindTextureUnit() to work?
- OpenGL shadow acne visual error without shadows implemented
- sampler2D in compute shaders, compilation errors
- OpenGL shader uniform is not recognized in the code
- Buffer read-back working depends on order of bind/map with DSA
- What happens to buffer attached to VAO via glVertexArrayVertexBuffer after deleting buffer?
- glPolygonOffset and backfaces
- Non-gradual color change in OpenGL
- OpenGL (with OpenTK) texture doesn't render (not even a white rect)
- OpenGL glProam link failed in windows: error C5145: must write to gl_Position
- How Can I Render Round Vertices Using OpenGL 4.0?
- use UV and normal indices in OpenTK
- Passing a big texture to a GLSL shader?
- Strided buffer copy for modifying interleaved vertex attributes
Related Questions in VERTEX-BUFFER
- Associating an attribute with multiple VBOs using glVertexAttribBinding/glVertexArrayAttribBinding
- Can I append vertexes to a default buffer using UpdateSubresources?
- How to make the vertex buffer available to a compute shader
- Directx11 vertexbuffer
- WebGPU. How to SET COLOR PER TRIANGLE, but not per vertex, and USE ONLY VERTEX BUFFER
- Importing 3d model(fbx) using Assimp creates higher number of vertices than original 3d model
- Vulkan StorageBuffer versus VertexBuffer
- Unity: How to edit vertex after skinned mesh animation has been applied
- Issue with read vertex / index buffer with structured buffer in DXR
- Adding vertices on mouse click in DirectX 12
- Vertex attribute not consumed by shader for my Vulkan program
- Unity: skinned mesh vertexbuffer output slightly different than correct results
- Drawing two triangles using index buffer
- OpenGL - Can I draw non-indexed when index-buffer is set for VAO?
- OpenGL texture issue on plane drawn using glDrawArrays()
Related Questions in VERTEX-ATTRIBUTES
- Edge detection shader (Passing 3 vertex positions to the shader program)
- Unsure why 3x3 matrix as a vertex attribute in GLSL is not working
- How to adjust node node attributes (color, sizing) in a bipartite network using R/igraph
- How to use TigerGraph GSQL to associate data from one Vertex to another Vertex?
- What happens when glDraw*Instanced() is called with primcount greater than how many times a vertex attribute can get updated?
- Passing vertex attributes with layouts in geometry shader
- how to split values from coordinates in OpenGL vertex buffer objects
- Transfer Vertex-Attributes to Texture bad texture results
- OpenGL - Can I draw non-indexed when index-buffer is set for VAO?
- Interleaved vs non-interleaved vertex buffers
- pyTigerGraph upsertVertexDataFrame attributes won't accept operator tuple
- Don't fully understand the concept of Vertex Attributes
- Edge and vertex attributes not mapping properly when constructing networkDynamic object
- Using multiple VBO in a VAO
- C++ directx 11 how to interleave unknown number of vertex attributes
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?
Popular Tags
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)
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, ...].