C++

1755 readers
1 users here now

The center for all discussion and news regarding C++.

Rules

founded 1 year ago
MODERATORS
151
152
153
154
 
 

I was trying to replicate an example of the last example of this section of this opengl tutorial, but without the textures, with wireframe cubes and with all the cubes rotating but when i run it only 1 cube is rendered.

I tried to do it again from scratch but only with c style code (except by the shaders and the glfw window) and i got the same result. Why it only renders 1 cube?

vertex shader: https://pastebin.com/6VzJKwBN fragment shader: https://pastebin.com/Ns9dLmqe the source file: https://pastebin.com/MvQtQG3g canned_glfw_window.hpp: https://pastebin.com/h2zD1WbK canned_glfw_window.cpp: https://pastebin.com/N2WX7NT8

155
156
157
8
Custom Iterator (biowpn.github.io)
submitted 1 year ago by lysdexic to c/cpp
158
 
 

I was doing this part of this opengl tutorial and when trying to replicate the rectangle example it ends in a segfault, it starts up when i dont create the VAO (the VAObject variable) but when i do that it doesnt draw anything at all, i recently recompiled glfw to use glx. rectangle source: https://pastebin.com/LD8QPa47 canned_glfw_window.hpp: https://pastebin.com/0pkxSrBK canned_glfw_window.cpp: https://pastebin.com/an3GQcy1 (i put most of the logic in the last 2 files in order to be able to reuse it later)

159
 
 

I was using this OpenGL tutorial, and when i compile the program and execute it, it fails with the error "Failed to create context: Arguments are inconsistent" the code: https://pastebin.com/1hQJYHxe Im using Arch Linux with sway (Wayland) glxinfo output: https://pastebin.com/VXWtib2W

160
161
162
163
4
submitted 1 year ago by lysdexic to c/cpp
164
165
17
CMake Guidelines (developer.mantidproject.org)
submitted 1 year ago by lysdexic to c/cpp
166
167
8
submitted 1 year ago by lysdexic to c/cpp
168
7
submitted 1 year ago by lysdexic to c/cpp
169
11
cppfront: Autumn update (herbsutter.com)
submitted 1 year ago by cmeerw to c/cpp
170
171
20
submitted 1 year ago by NeverBetter to c/cpp
172
 
 

i was trying to create a deque, and when the function that resizes the array is excuted, it crashes with the error from the title, and when i delete the deallocate() it stops happening, what im doing wrong? code: https://pastebin.com/0yHHcLnj

173
174
15
LLVM 17.0.1 released! (discourse.llvm.org)
submitted 1 year ago by gracicot to c/cpp
175
view more: ‹ prev next ›