parthibbiswas93

Members
  • Content count

    6
  • Joined

  • Last visited

Community Reputation

168 Neutral

About parthibbiswas93

  • Rank
    Newbie
  1. Hello everyone... For last couple of days, I've been following LazyFoo's SDL tutorials and then I came across this term "blit". I decided to check out SDL's documentation but I could not understand. I decided to just memorize this particular part from the tutorials. But as I progressed, it became a bit harder for me to understand the tutorials. From then onwards I've been itching to know what is "Blit"? :)
  2. Need Help with compilers and make commands.

    firstly, download MinGW from this site: http://sourceforge.net/projects/mingw/files/MinGW/ Install it to C:\MinGW Then after installing, do these if you are using Windows 7 or Vista or 8 ( i guess same thing can be done for XP too ) :   1. Press Start and R buttons. It will open up the Run window box.   2. Then copy paste this - systempropertiesadvanced.exe and press Enter.   3. Click on Environment Variables which is in the bottom right corner.   4. Over here, you'll find 2 boxes. Go to the box which says System variables and under the Variables column, search for Path or PATH (for me it was Path. Both are the     same thing). 5. Double click on PATH. It will open up another box. Over here, in the variable value box if there is already written something on it, then copy paste - ;C:\MinGW\bin.     NOTE: It is mandatory to put the semicolon as it separates itself from other stuff written in the box... 6. Press OK, OK and then i guess it must work. Let us know whether it worked or not...
  3. I was following OpenGL tutorials from this site - www.arcsynthesis.org/gltut/  and in the Building Tutorials section, i downloaded the 0.3.8 version of the tutorials. I extracted its contents in a folder in the desktop... I downloaded premake4, then I placed that in the folder where i have extracted the contents. Then I opened up cmd and I cd to the directory where I extracted the contents. Since, I'm using CodeBlocks, i typed premake4 gmake and then it started building stuff... I copied the contents of the framework folder to its respective directory. Then I went to Tut 01 Hello Triangle directory via command prompt and executed the premake4 command. After that, I opened up tut1.cpp with CodeBlocks and after compiling i get a number of these errors: C:\Users\PB9X\Desktop\Tutorial 0.3.8\Tut 01 Hello Triangle\tut1.o:tut1.cpp|| undefined reference to `__gleCreateShader'| C:\Users\PB9X\Desktop\Tutorial 0.3.8\Tut 01 Hello Triangle\tut1.o:tut1.cpp|| undefined reference to `__gleShaderSource'| C:\Users\PB9X\Desktop\Tutorial 0.3.8\Tut 01 Hello Triangle\tut1.o:tut1.cpp|| undefined reference to `__gleCompileShader'| C:\Users\PB9X\Desktop\Tutorial 0.3.8\Tut 01 Hello Triangle\tut1.o:tut1.cpp|| undefined reference to `__gleGetShaderiv'| C:\Users\PB9X\Desktop\Tutorial 0.3.8\Tut 01 Hello Triangle\tut1.o:tut1.cpp|| undefined reference to `__gleGetShaderiv'| C:\Users\PB9X\Desktop\Tutorial 0.3.8\Tut 01 Hello Triangle\tut1.o:tut1.cpp|| undefined reference to `__gleGetShaderInfoLog'| C:\Users\PB9X\Desktop\Tutorial 0.3.8\Tut 01 Hello Triangle\tut1.o:tut1.cpp|| undefined reference to `__gleCreateProgram'| C:\Users\PB9X\Desktop\Tutorial 0.3.8\Tut 01 Hello Triangle\tut1.o:tut1.cpp|| undefined reference to `__gleAttachShader'| C:\Users\PB9X\Desktop\Tutorial 0.3.8\Tut 01 Hello Triangle\tut1.o:tut1.cpp|| undefined reference to `__gleLinkProgram'| C:\Users\PB9X\Desktop\Tutorial 0.3.8\Tut 01 Hello Triangle\tut1.o:tut1.cpp|| undefined reference to `__gleGetProgramiv'| C:\Users\PB9X\Desktop\Tutorial 0.3.8\Tut 01 Hello Triangle\tut1.o:tut1.cpp|| undefined reference to `__gleGetProgramiv'| C:\Users\PB9X\Desktop\Tutorial 0.3.8\Tut 01 Hello Triangle\tut1.o:tut1.cpp|| undefined reference to `__gleGetProgramInfoLog'| C:\Users\PB9X\Desktop\Tutorial 0.3.8\Tut 01 Hello Triangle\tut1.o:tut1.cpp|| undefined reference to `__gleDetachShader'| C:\Users\PB9X\Desktop\Tutorial 0.3.8\Tut 01 Hello Triangle\tut1.o:tut1.cpp|| undefined reference to `__gleDeleteShader'| C:\Users\PB9X\Desktop\Tutorial 0.3.8\Tut 01 Hello Triangle\tut1.o:tut1.cpp|| undefined reference to `__gleGenBuffers'| C:\Users\PB9X\Desktop\Tutorial 0.3.8\Tut 01 Hello Triangle\tut1.o:tut1.cpp|| undefined reference to `__gleBindBuffer'| C:\Users\PB9X\Desktop\Tutorial 0.3.8\Tut 01 Hello Triangle\tut1.o:tut1.cpp|| undefined reference to `__gleBufferData'| C:\Users\PB9X\Desktop\Tutorial 0.3.8\Tut 01 Hello Triangle\tut1.o:tut1.cpp|| undefined reference to `__gleBindBuffer'| C:\Users\PB9X\Desktop\Tutorial 0.3.8\Tut 01 Hello Triangle\tut1.o:tut1.cpp|| undefined reference to `__gleGenVertexArrays'| C:\Users\PB9X\Desktop\Tutorial 0.3.8\Tut 01 Hello Triangle\tut1.o:tut1.cpp|| undefined reference to `__gleBindVertexArray'| C:\Users\PB9X\Desktop\Tutorial 0.3.8\Tut 01 Hello Triangle\tut1.o:tut1.cpp|| undefined reference to `__gleClearColor'| C:\Users\PB9X\Desktop\Tutorial 0.3.8\Tut 01 Hello Triangle\tut1.o:tut1.cpp|| undefined reference to `__gleClear'| C:\Users\PB9X\Desktop\Tutorial 0.3.8\Tut 01 Hello Triangle\tut1.o:tut1.cpp|| undefined reference to `__gleUseProgram'| C:\Users\PB9X\Desktop\Tutorial 0.3.8\Tut 01 Hello Triangle\tut1.o:tut1.cpp|| undefined reference to `__gleBindBuffer'| C:\Users\PB9X\Desktop\Tutorial 0.3.8\Tut 01 Hello Triangle\tut1.o:tut1.cpp|| undefined reference to `__gleEnableVertexAttribArray'| C:\Users\PB9X\Desktop\Tutorial 0.3.8\Tut 01 Hello Triangle\tut1.o:tut1.cpp|| undefined reference to `__gleVertexAttribPointer'| C:\Users\PB9X\Desktop\Tutorial 0.3.8\Tut 01 Hello Triangle\tut1.o:tut1.cpp|| undefined reference to `__gleDrawArrays'| C:\Users\PB9X\Desktop\Tutorial 0.3.8\Tut 01 Hello Triangle\tut1.o:tut1.cpp|| undefined reference to `__gleDisableVertexAttribArray'| C:\Users\PB9X\Desktop\Tutorial 0.3.8\Tut 01 Hello Triangle\tut1.o:tut1.cpp|| undefined reference to `__gleUseProgram'| C:\Users\PB9X\Desktop\Tutorial 0.3.8\Tut 01 Hello Triangle\tut1.o:tut1.cpp|| undefined reference to `__gleViewport'| ||=== Build finished: 30 errors, 0 warnings (0 minutes, 1 seconds) ===|       Where the hell did I go wrong? I already have GLEW, FreeGLUT, glimg, glload, glm, glmesh and gutil in its respective directories...
  4. Setting up GLFW for MinGW CodeBlocks

    Alright I figured it out... To "anyone who had no idea how to sort out this stuff and reached here", you gotta do this for setting up GLFW: 1. Download the MinGW version of CodeBlocks and install it. 2. Download MinGW from is official site amd install in this directory: C:\MinGW 3. Download GLFW from its official site [http://www.glfw.org/]. 4. After downloading it extract it, lets say in Desktop... 5. Right click My Computer and select Properties. 6. Go to "Advanced System Settings". 7. In the box that appears, click "Environment Variables...". 8. In the box named "System Variables", search for "Path" or "PATH" under "Variable" column. 9. Double click it and then a box will appear. 10. In the "Variable" box, you will see directories of some installed stuff... Over here, you have to give your MinGW directory... Type this: ";C:\MinGW\bin" (excluding quotes). NOTE: Adding semicolon is mandatory as it separates from other directories given in that box. Click OK, OK, and OK. 11. Open command prompt... Then type the following command: C:\Users\yourcomputername> cd <the directory where you extracted GLFW> For example, mine was like this: C:\Users\PB9X> cd desktop\glfw-2.7.7 12. After you have typed that command, type the following command: mingw32-make win32-mingw Mine was like this: C:\Users\PB9X\Desktop\glfw-2.7.7> mingw32-make win32-mingw 13. After typing that command, the compilation will take place. 14. After the compiling is over, go to the place where you have extracted glfw, and in that folder, you'll find a sub folder named "lib". In "lib" folder, open the folder named "win32". 15. Over here copy these files: libglfw.a, glfw.dll and libglfwdll.a to C:\Program Files (x86)\CodeBlocks\MinGW\lib 16. Copy glfw.dll to the system folder where opengl32.dll is located. It should be in C:\Windows\System32 (for 32 bit Windows) or C:\Windows\SysWOW64 (for 64 bit Windows). If opengl32.dll is located in both the directories, then do it for both of them. For me it was in both directories. So I copied to both of them. It won't create any problem. 17. Copy glfw.h from the "include" subfolder in the glfw folder you have extracted and paste it to C:\Program Files (x86)\CodeBlocks\MinGW\include\GL Now the CodeBlocks part: 1. Open a new GLFW project and name the prject whatever you want and give the directory where you want to save your project. Then click Next. 2. Then it will ask you to select GLFW's location. Give this directory : C:\Program Files (x86)\Codeblocks\MinGW. Click Next and then click Finish. 3. In the "Management" area (it should be in the left side), collapse the folder named "Sources" and open main.cpp and run it. 4. Enjoy.... And start writing your GLFW programs...
  5. Well... I'm kinda new to this stuff... but can somebody help me figure out how to setup GLFW for CodeBlocks for Windows.... I have installed MinGW version of CodeBlocks... i tried to follow the release notes given in their sites, but i just don't get it... They have given how to compile using MinGW... Can anyone explain me the line (taken from the release notes of GLFW) which is given below:   GLFW can be compiled using only MinGW. Open a Windows command prompt, enter the root directory of the GLFW source distribution and use the win32-mingw target: mingw32-make win32-mingw  
  6. which IDE should i use for opengl?

    i have been using Dev C++ for all college assignments.... but when i use opengl, it gives me errors... there are some people who say that Dev C++ is a shitty IDE... so guys, which IDE is good for opengl? i heard Microsoft Visual C++ 2008 is good...