Forget it, i'm an idiot...
I just realized i was defining an inline function within the .cpp file and not the .h file. Moving the function to the correct place solved it.
Oops...
Type: Posts; User: Quasar
Forget it, i'm an idiot...
I just realized i was defining an inline function within the .cpp file and not the .h file. Moving the function to the correct place solved it.
Oops...
Hi all!
I have a bit of a problem and Google isn't helping me :(
I'm trying to implement a namespace, let's call it test.
When i code my program like in the example below, it compiles, links...
Sorry, missing &.
Still the same problem, argh...
Rebooting the server, maybe that works.
It's more complicated that that. I simplified the example...
I'm passing this structure:
typedef struct { /* Country mutex structure */
pthread_mutex_t resA, resE, resP,...
That's why i think it's a gcc problem, if i move the function to it's original place everything works!
I was wondering if there something lika a -mutex-across-multiple-source-files i should pass...
Hi all!
I'm working on a prog that uses mutexes. Since the code is growing bigger and bigger i decided to split it across multiple C and H files. To my surprise the mutexes stopped working!
I...
worked! thanks a lot :)
I am trying to create a function to add a new entry to an array of pointers, for example:
Assuming i have my CameraCircuit structure set like this:
struct CameraCircuit
{
GLdouble...
Worked, thnx.
I'm trying to create a function that converts a custom structure - Spline - to a 2-dimension array of doubles. The problem is that although the function works fine and stores the correct values in...
GLUT wraps up a lot of windows functions, you don't need to set up windows, rendering contexts, drawing contexts, call back functions etc... It does that for you. for example:
#include...
OpenGL only draws the scene when you teel it to, so you don't have that problem.
You can user gultSwapBuffers(); if you are working with GLUT or SwapBuffers(hdc); to render the scene (assuming you...
all solved, it's perfect now, thnx for the help.
try this, kinda dumb but it works:
#include <iostream.h>
#include <stdio.h>
int main() //Most important part of the program!
{
int age; //Need a variable...
cout<<"Please input...
what about Sleep() ?
it is possible, you just need to define the relative position of the center of the shield model (for example) from the center of you body model. then use something like:
glPushMatrix();
...
char * buffer; //buffer to store file contents
long size; //file size
ifstream file (filename, ios::in|ios::binary|ios::ate); //open file in binary mode, get pointer at the end of the...
Another version of ProcessTextureMapsList, again it doesn't work because buffer isn't initialized, however if i initialize it i must make it match the size of the string it is going to read, so that...
Hi there, i never worked with dynamic memory allocation in C++, that is the new and delete. I'm creating an open GL based graphics engine and i need to read files with deep exploration structure,...