Search:

Type: Posts; User: thedoofus

Search: Search took 0.01 seconds.

  1. Thread: GetPixel()

    by thedoofus
    Replies
    1
    Views
    1,501

    GetPixel()

    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...
  2. Thread: Dot Products

    by thedoofus
    Replies
    1
    Views
    2,106

    Dot Products

    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...
  3. Replies
    2
    Views
    1,047

    quick fscanf question

    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...
  4. Replies
    4
    Views
    1,055

    ok - I've now created a blank project which is...

    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...
  5. Replies
    4
    Views
    1,055

    I try doing that and it includes a load of...

    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...
  6. Replies
    4
    Views
    1,055

    Visual Studio .Net 2003

    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...
  7. Replies
    9
    Views
    1,389

    I had initialized the values - I've just looked...

    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
  8. Replies
    9
    Views
    1,389

    Sorry - i changed the warning messages to fit my...

    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:...
  9. Replies
    9
    Views
    1,389

    The thing is I have assigned values to it. ...

    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;
  10. Replies
    9
    Views
    1,389

    Annoying error

    Hi -

    I've created two matrices i.e



    float matrixA[3][3];
    float matrixB[3][3];
  11. Replies
    2
    Views
    1,251

    quick malloc question

    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;
  12. Replies
    4
    Views
    2,507

    But my problem is the very last bit I need to...

    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...
  13. Replies
    4
    Views
    2,507

    glDrawPixels()

    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...
  14. Thread: opengl

    by thedoofus
    Replies
    2
    Views
    1,120

    I'm on the verge of succeeding. The very edge....

    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,...
  15. Thread: opengl

    by thedoofus
    Replies
    2
    Views
    1,120

    opengl

    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...
  16. Thread: ADTs

    by thedoofus
    Replies
    1
    Views
    1,114

    ADTs

    Can anyone give me a quick explanation on the difference between a pure ADT and a semi ADT?

    Cheers
  17. Thread: Linked Lists

    by thedoofus
    Replies
    4
    Views
    1,033

    I always thought if you were mallocing a variable...

    I always thought if you were mallocing a variable that you had created it needed to be cast?
  18. Thread: Linked Lists

    by thedoofus
    Replies
    4
    Views
    1,033

    Linked Lists

    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...
  19. Replies
    2
    Views
    2,118

    Linked List creation

    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...
  20. Replies
    2
    Views
    1,603

    Access Violation error

    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...
  21. Replies
    4
    Views
    1,196

    That worked perfectly - had a missing ; just like...

    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...
  22. Replies
    4
    Views
    1,196

    Random Error Message

    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_
  23. Replies
    4
    Views
    1,201

    Hi - In file_names.txt FileCount: 3 ...

    Hi -

    In file_names.txt




    FileCount: 3

    FileName: vectors_info.txt
  24. Replies
    4
    Views
    1,201

    Read File function problems

    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...
Results 1 to 24 of 24