Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: C++ -> VB

  1. #1
    Guest

    C++ -> VB

    How do to coding this C code in VB, thanks !

    GLfloat specular[] = {1.0,1.0,1.0,1.0 };
    glMaterialfv(GL_FRONT,GL_SPECULAR,
    specular);

  2. #2
    Intern Contributor
    Join Date
    Jul 2001
    Posts
    64

    Re: C++ -> VB

    GLfloat specular[] = {1.0,1.0,1.0,1.0 };
    glMaterialfv(GL_FRONT,GL_SPECULAR,
    specular);

    Dim spec(0 to 3) as GLFloat

    Spec(0)=1
    Spec(1)=1
    Spec(2)=1
    Spec(3)=1
    glMaterialfv GL_FRONT, GL_SPECULAR, spec(0)

Posting Permissions

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