- Strength to Increase Rep
- +5
- Strength to Decrease Rep
- -1
- Upvotes Received
- 5
- Posts with Upvotes
- 5
- Upvoting Members
- 5
- Downvotes Received
- 5
- Posts with Downvotes
- 5
- Downvoting Members
- 2
i have spent some time trying to install glut in code blocks and so far I haven't succeeded. i have downloaded the glut-3.7.6-bin [URL="http://www.xmission.com/~nate/glut.html"]from here[/URL] . I have looked at tutorials on where to put the files in the download ([URL="http://www.sci.brooklyn.cuny.edu/~goetz/codeblocks/#win"]like here[/URL]) but it doesn't work. :icon_question::icon_question::icon_question: | |
Re: this might work: [CODE] #wrapper { background: #ffffff; opacity: 0.8; filter:alpha(opacity=80); -moz-opacity:0.8; filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=80); -khtml-opacity: 0.8; -ms-filter: “progid:DXImageTransform.Microsoft.Alpha(Opacity=80)”; } #wrapper * { opacity: 1; filter:alpha(opacity=100); -moz-opacity:100; filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100); -khtml-opacity: 0.8; -ms-filter: “progid:DXImageTransform.Microsoft.Alpha(Opacity=100)”; } [/CODE] the * means everything | |
Re: looking on msdn ([URL="http://msdn.microsoft.com/en-us/library/system.io.streamreader.readtoend.aspx"]http://msdn.microsoft.com/en-us/library/system.io.streamreader.readtoend.aspx[/URL]) StreamReader has a ReadToEnd function. is this what you were looking for? | |
Re: srand sets the seed for the random number generator (it takes the number you put in and passes it through a logarithm which generates a pseudo(fake, not totaly random) set of numbers). setting it by time(), you almost never get the same seed twice and so GREATLY improves randomness. | |
Re: OK. I tried (and failed) to keep to the same code style as the one you had. (and cleaned up with some const correctness :) ) I came up with this (included main() to show how to use) the RecursiveCopy function with no int argument checks to see if old_str … | |
Re: i think it is becuase you are passing copies of the nodes to the setRightChild setleftChild functions. not references (or pointers) so instead of this [CODE]void Node::setleftChild(Node n1) { leftChild=&n1; } void Node::setRightChild(Node n2) { rightChild=&n2; }[/CODE] try [CODE]void Node::setleftChild(Node* n1) { leftChild=n1; } void Node::setRightChild(Node* n2) { rightChild=n2; } … | |
Re: well it depends whether the fan is controlled by the computer or whether it just uses the usb power [B][U]if its just controlling the power there is a post here:[/U][/B] [URL="http://stackoverflow.com/questions/1925237/control-usb-ports-power"]http://stackoverflow.com/questions/1925237/control-usb-ports-power[/URL] [B][U]if it has a driver and or api then either use the api or[/U][/B] [URL="http://sourceforge.net/apps/trac/libusb-win32/wiki"]http://sourceforge.net/apps/trac/libusb-win32/wiki[/URL] [B][U]and here is some … | |
Re: here is what I came up with: the problems I fixed: [LIST] [*]you were trying to delete the cptr array [B]itsself[/B]. not the things inside it, so I added a loop to do this [*]array values start at 0 so I changed some loops or you would get segmentation faults … | |
Re: this is an idea I had. remove everything above 0 like you did. then convert the decimal bit to a string. then get the length of the string. [CODE] #include <iostream> #include <string> #include <sstream> int DecimalPlaces(double test) { double JustDecimals = test - (int) test; std::stringstream converter; converter<< JustDecimals; … | |
I am getting the error: There is no disk in the drive. Please insert a disk into drive \Device\Harddisk1\DR1. I have already read the answers of previous posts, but none of them fit to my situation. I am running code blocks from a usb stick. When I start debugging I … | |
Re: it might be because glutInit is outside of main? (if that's how your actual code looks) | |
I am trying to move a project from CodeBlocks to visual c++. (it compiles fine using minGW) I am using the 2010 express version. when I compile the projectusing VC++ I get the errors below. I have done some research and it is comming from including windows.h. to test this … | |
is it possible to stretch a 3D scene in openGL? I know it is possible in glOrtho() but how would I make a 3D scene stretch. for example if I rendered a cube, in the middle of a window, and then made the window longer, instead of the cube stretching, … | |
what would be a good way to load images to use for texture mapping in opengl? I have looked at tutorials such as nehe lesson 6 and some other resources but they all use something old and depreciated that I cant compile. | |
Re: Thats what I was trying to tell him but he wants to go straight onto graphics!!! | |
Re: http://www.daniweb.com/forums/thread510.html maybe and i compiled it and it doesn't work for me either | |
would there be anything wrong with making an includes.h which has all of the .h files my project needs to link to. or is it better to link to them when needed? | |
I have been trying to get world coordinates of the cursor position for a program by: [LIST=1] [*]getting the top and left position of the client of the window [*]getting the global position of the cursor (GetCursorPos()) [*]cursor x - client left and cursor y - client top [*]zoom x … | |
in openGL how can I make the left of the screen = 0 and the right to = 10 or somthing, and the top = 0 and the bottom = -10. because i dont like working with numbers only ranging from -1.0 to 1.0. i read [URL="http://www.opengl.org/resources/faq/technical/transformations.htm"]here[/URL] that the coordinate … | |
Re: well if you want to make guis for windows the you can use: [URL="http://www.winprog.org/tutorial/"]http://www.winprog.org/tutorial/[/URL] its quite tricky to get the hang of but its ok :) | |
I have been trying for ages to get glut working (in code blocks) and now it works... sort of. I can compile and run applications but it comes up with several warning: ignoring #pragma comment errors in glut.h. I got the glut.h file from [URL="http://www.transmissionzero.co.uk/computing/using-glut-with-mingw/"]here[/URL]. because all other downloads of … | |
what is the difference between openGL glut and openGL? | |
Re: edit: don't worry, forget I said anything :icon_redface: | |
Re: I compiled it with minGW in code blocks and it worked fine (after I added return; and took main() out of a class) so maybe its something to do with the compiler/ ide your using | |
I have recently learnt the basics of c++ but I want to advance to making proper GUI's (and games) but I don't know what to use. I think the two most popular libraries are OpenGL and Direct3d but I'm not sure which one to use. could you guide me in … | |
how can I use a function inside an object? (the code is too long to put here but here's a replica) [code=c++] class example { public: example(); ~example(); void doSomthing() { afunction(); } } void afunction() { //do more things } [/code] in this example i wouldnt [B][U]NEED[/U][/B] to use … |