0
爲什麼此代碼給我一個關於標識符GLUquadric
的錯誤?據我所知,GLFW包括應該將其納入範圍。錯誤CC2061:語法錯誤:標識符'GLUquadric'
#ifndef BALL_H
#define BALL_H
#define GLFW_INCLUDE_GLU
#include <GLFW/glfw3.h>
#include <glm/glm.hpp>
#include <glm/ext.hpp>
struct Cuboid;
struct Ball {
glm::vec3 position;
glm::vec3 velocity;
float radius;
glm::quat orientation;
glm::vec3 angular_velocity;
Ball(float radius);
};
void draw(const Ball& ball, GLUquadric* quadric);
void integrate(Ball& ball, float dt, const Cuboid& platform, glm::vec3 torque);
#endif
請更新您的問題以顯示確切的完整錯誤信息。 –