glut

    1熱度

    1回答

    我通過函數MontaVetorVerticalOtimizado(x, y, Vetor)的參數發送數組int Vetor[33];,在該數組填充之後,問題是在填充數組之後,函數OtimizaVerticalDentina()的所有變量都用值數組,這似乎令人困惑,所以我加的圖像,同時調試使其更容易理解: 第一功能: void OtimizaVerticalDentina() { int

    5熱度

    1回答

    我繪製具有詳細像素的圖案,並且它們經常面對莫爾效應。我不擅長陰影,我不確定這個問題是否會被着色器解決。我還沒有找到任何基礎,可理解和完整的着色器例子。大多數教程網站從中間開始一個程序,省略頭文件包括! 這是我的代碼的MWE。是否有可能通過它減輕或消除莫爾效應? #include <cmath> #include <vector> #ifdef __APPLE__ #include <GLU

    -3熱度

    1回答

    在主函數中,當我聲明子菜單時,我得到了兩個錯誤。 在GLint subMenu;的第一個錯誤,它說「閃閃發光子菜單」以前這裏聲明」 上int subMenu;其他錯誤時顯示「的重複聲明‘INT子菜單’ 下面是主要功能的一部分 int main(int argc, char** argv) { glutInit(&argc, argv); GLint subMenu;

    0熱度

    1回答

    #include<stdio.h> #include<stdlib.h> #include<math.h> #include<GL/glut.h> double cameraAngle; void grid_and_axes() { // draw the three major AXES glBegin(GL_L

    -1熱度

    1回答

    線路未顯示。代碼有什麼問題? #include<windows.h> //#ifdef __APPLE__ //#include <GLUT/glut.h> //#else #include <GL/glut.h> //#endif //#include <stdlib.h> void init(void){ glClearColor(1.0, 1.0,1.0,0.0);

    0熱度

    1回答

    我想按空格鍵時畫一個圓柱體。 這是代碼的摘錄我現在所擁有的: void draw_cylinder(GLfloat radius, GLfloat height, GLubyte R, GLubyte G, GLubyte B) { GLfloat x = 0.0; GLfloat y = 0.0; GLfloat angle

    0熱度

    1回答

    我正在開發一個C語言的OpenGL應用程序,我使用的是glew/glfw3,而在我用來註冊一個循環函數的過程中,我使用了glutDisplayFunc。 glew/glfw3中是否有這樣的函數,還是我自己必須編寫循環? 我主要是問,因爲我想正確使用glew/glfw3,而且我覺得如果存在這樣的函數,應該使用它。 謝謝!

    0熱度

    1回答

    我想運行一個簡單的OpenGL代碼: from OpenGL.GL import * from OpenGL.GLUT import * from OpenGL.GLU import * window = 0 # glut window number width, height = 500, 400 # window size def draw()

    0熱度

    1回答

    我試圖安裝OpenGL庫上的Visual Studio 2013的代碼繪製一個三角形我沒有在錯誤列表錯誤,涉及到包括文件,但它這麼想的工作 這是代碼: #include<glut.h> static void redraw(); void main() { glutInitDisplayMode(GLUT_RGB | GLUT_SINGLE); glutInitWin

    2熱度

    2回答

    我正在嘗試使用bazel構建C++應用程序。它應該可以在macos和linux上運行。現在的問題是,在馬科斯它需要通過"-framework OpenGL", "-framework GLUT"鏈接器標誌,而在Linux上,我應該做的像 cc_library( name = "glut", srcs = glob(["local/lib/libglut*.dylib", "lib/libglut*