Results 1 to 8 of 8

Thread: OpenGL glLightfv parameters

Threaded View

  1. #1

    Thread Starter
    Fanatic Member Ruku's Avatar
    Join Date
    Jul 2002
    Location
    Canada
    Posts
    655

    Lightbulb OpenGL glLightfv parameters

    Having a few problems with OpenGL's glLightfv function,

    I sent:

    Code:
    glLightfv(GL_LIGHT1, GL_AMBIENT, LightAmbient)
    with LightAmbient being an array of float containing { 0.5, 0.5, 0.5, 1.0 }
    (edit: these values correspond to x,y,z, alpha)

    and I receive error message:

    "Error 1 Overloaded method 'CsGL.OpenGL.OpenGL.glLightfv(uint, uint, float*)' has invalid arguments"

    using csgl.dll from Lloyd Dupont <[email protected]>, 2001
    ver 1.4.1.0

    All samples over the internet make the use of the array fine... so I'm having a hard time find the problem on my arguments...

    thanks for helping...

    (edit: sry if not appropriate for this topic, please move to Games and Graphics Programming)
    Last edited by Ruku; Feb 7th, 2007 at 10:03 AM.

    Using VB.NET 2005/.NET 2.0, NetBeans IDE 5, Fujitsu Cobol85,
    Website: http://DreamForgery.com

Posting Permissions

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



Click Here to Expand Forum to Full Width