Results 1 to 6 of 6

Thread: How to get input from .txt file

  1. #1
    Junior Member
    Join Date
    Mar 2005
    Posts
    3

    How to get input from .txt file

    I was trying to get some data file from a .txt file, was it possible to do so in OpenGL ES?

  2. #2
    Member
    Join Date
    Oct 2004
    Location
    Bangalore, India
    Posts
    44

    Re: How to get input from .txt file

    What has opengl es got to do with I/O of files ? It should be possible with regular file I/O.

  3. #3
    Junior Member
    Join Date
    Mar 2005
    Posts
    3

    Re: How to get input from .txt file

    you mean regular I/O can be done? well, i not so sure about that, coz 1 of my friends says that, it cant be done... anyway, thankx for your info

  4. #4
    Senior Member
    Join Date
    Sep 2003
    Location
    Seattle, WA
    Posts
    246

    Re: How to get input from .txt file

    They are correct, OpenGL (ES) does not define a file format similar to DirectX's .X file that you can use to load various assets diretly into the driver.

    You can, however, easily write functions that load the asset into memory, and then transfer it down the driver using a corresponding API call.

    - HM

  5. #5
    Member
    Join Date
    Oct 2004
    Location
    Bangalore, India
    Posts
    44

    Re: How to get input from .txt file

    I meant that you need to use regular file I/O routines to load,read, write etc from and to files respectively.

  6. #6
    Junior Member
    Join Date
    Mar 2005
    Posts
    3

    Re: How to get input from .txt file

    Forgotten to mention that, i am doing it for Pocket PC...... not for PC version.

Similar Threads

  1. header file in kernel file
    By agmegharaj in forum OpenCL
    Replies: 1
    Last Post: 08-30-2011, 02:11 AM
  2. How to Include Common File into OCL file!
    By alexzhao in forum OpenCL
    Replies: 1
    Last Post: 11-09-2009, 12:23 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •