C++

1782 readers
1 users here now

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

Rules

founded 1 year ago
MODERATORS
151
152
12
submitted 1 year ago by lysdexic to c/cpp
 
 

TL;DR

At last the experiment is over, and CMake 3.28 has official support for C++ 20 named modules enabled without having to set the CMAKE_EXPERIMENTAL_CXX_MODULE_CMAKE_API variable.

153
154
155
156
 
 

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

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

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)

161
 
 

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

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

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

175
view more: ‹ prev next ›