Results 1 to 2 of 2

Thread: Input from C code

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2001
    Location
    Kharagpur,W.B., India
    Posts
    2

    Input from C code

    I want to use my c code which has the triangulation of an object and the color info of each triangle,
    how to input this code into gl and render it?
    how can I capture animation from gl code?

  2. #2
    Senior Member Regular Contributor
    Join Date
    Nov 2000
    Location
    State College, PA
    Posts
    186

    Re: Input from C code

    Hello again!

    It seems like you are asking how to draw using OpenGL - if so, this site (www.opengl.org) contains hundreds of links to help you get started. You might try NeHe's site - he's got some good tutorials (http://nehe.gamedev.net/opengl.asp).

    If you've got all of the tirangle information (vertices, colors, etc.) in C code already, then all you have to do is call the appropriate OpenGL functions to draw it to the screen - it's not so much a mater of "inputting" the information to GL as simply drawing it.

    Chris

Similar Threads

  1. Replies: 10
    Last Post: 05-24-2017, 07:31 PM
  2. Mandelbrot: Convert CUDA code to OpenCL code
    By humble_programmer in forum OpenCL
    Replies: 2
    Last Post: 05-24-2016, 07:48 AM
  3. Replies: 1
    Last Post: 12-06-2010, 10:39 AM
  4. Code for getting text input in OpenGL
    By PhoenixByte in forum OpenGL: Windows
    Replies: 2
    Last Post: 03-09-2005, 04:57 AM
  5. Trying to do text input for OpenGL but didn't know the code
    By PhoenixByte in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 02-20-2005, 03:16 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
  •  
Proudly hosted by Digital Ocean