Hi -
I'm currently trying to read a bmp file with a specified x,y location. I found the function GetPixel which seems to do this for me:
ColorRef GetPixel(h, x, y);
But alas I'm not clever...
Type: Posts; User: thedoofus
Hi -
I'm currently trying to read a bmp file with a specified x,y location. I found the function GetPixel which seems to do this for me:
ColorRef GetPixel(h, x, y);
But alas I'm not clever...
hey there -
this is just a basic maths question. I've implemented a dot product calculation and I'm sure its wrong.
I'm multiplying the two x co-ords the two y co-ords and the two z co-ords...
Hi -
Just trying to read in strings from a file and I'm coming across a problem. In the file I have
Filenames
triangle.txt
And I want to miss out the Filenames and just read the...
ok - I've now created a blank project which is lovely and how it should be.
I add my basic main.c go into debug->start which i'm presuming is the new location for the execute button and nothing...
I try doing that and it includes a load of rubbish like test.cpp etc - which scares me anyways. I try including a hello world main.c to test it out and then get an error:
i:\test\main.c(10): fatal...
Pleeeease can someone help?
All I want to do is create a c programming workspace and I can't fr the life of me do it!! It's stressing me out so I was hoping someone could give me a step by step...
I had initialized the values - I've just looked and the problem I had was I'd referenced matrix[3][0] which doesnt exist.
thanks anyways
H
Sorry - i changed the warning messages to fit my example previously. so the warning messages now are:
warning C4700: local variable 'betaDet' used without having been initialized
warning C4700:...
The thing is I have assigned values to it.
Here's the actual code that I have created:
float betaDet[3][3];
float A[3][3];
betaDet[0][0]=triangle->p0.x-ray->origin.x;
Hi -
I've created two matrices i.e
float matrixA[3][3];
float matrixB[3][3];
I jsut have a question concerning malloc and how exactly is best to use it.
I've created some variables for example:
typedef struct tagVector3{
float x,y,z;
}Vector3;
But my problem is the very last bit I need to include, which is const GLvoid *pixels. What form is this ment to be in. The only explanation is that it is a pointer to the pixel data. But my...
Hi -
I don't know if anyone can help, but I want to use glDrawPixels(). I want to use my own created colour buffer which so far is an array of self made variable Colour. But I'm not sure how to go...
I'm on the verge of succeeding. The very edge. But I've come a cropper.
I'm using the following to try draw my own pixels from my colourbuffer:
glDrawPixels(400, 400, GL_RGB, GL_FLOAT,...
I want to use opengl to open a window and draw an image to using my own colourbuffer. I did have this implemented last year but I've pretty much completely forgotten how to do this. Does anyone know...
Can anyone give me a quick explanation on the difference between a pure ADT and a semi ADT?
Cheers
I always thought if you were mallocing a variable that you had created it needed to be cast?
G'ah my c programming needs major improvement. I've created a function that reads information from files and then enters this information in a linked list.
What I've done is a bit of a mess as I'm...
Hi -
I'm just trying to create a cery simple function to create a linked list of a given amount of nodes. If that makes sense.
So the number of required nodes is passed to the function
The...
Hi -
I'm having problems with a small bit of code. If I wasn't so tired and my brain wasn't so fried I'm sure I'd be able to solve the problem but here's the code:
ListNode...
That worked perfectly - had a missing ; just like you said.
the tagFileNames isn't normally in there but I'd changed it in a desperate attempt to find out the problem :)
Cheers everyone for...
Hi -
I'm having the most random problem.
I've got a header file readfile.h and in it is a structure I've created
#ifndef _READFILE_H_
#define _READFILE_H_
Hi -
In file_names.txt
FileCount: 3
FileName: vectors_info.txt
Hi I'm having a problem with some code.
What I want it to do is read a file that is full of filenames and store them in my array of structures. What;s happening is if i have in my file 3 filenames...