com.jogamp.opengl.impl.glu.nurbs
Interface CurveEvaluator


public interface CurveEvaluator

Class rendering curves with OpenGL

Author:
Tomáš Hráský

Method Summary
 void bgnmap1f()
          Pushes eval bit
 void enable(int type)
          Calls opengl enable
 void endmap1f()
          Pops all OpenGL attributes
 void map1f(int type, float ulo, float uhi, int stride, int order, CArrayOfFloats ps)
          Initializes opengl evaluator
 void mapgrid1f(int nu, float u1, float u2)
          Calls glMapGrid1f
 void mapmesh1f(int style, int from, int to)
          Evaluates a curve using glEvalMesh1f
 

Method Detail

bgnmap1f

void bgnmap1f()
Pushes eval bit


endmap1f

void endmap1f()
Pops all OpenGL attributes


map1f

void map1f(int type,
           float ulo,
           float uhi,
           int stride,
           int order,
           CArrayOfFloats ps)
Initializes opengl evaluator

Parameters:
type - curve type
ulo - lowest u
uhi - highest u
stride - control point coords
order - curve order
ps - control points

enable

void enable(int type)
Calls opengl enable

Parameters:
type - what to enable

mapgrid1f

void mapgrid1f(int nu,
               float u1,
               float u2)
Calls glMapGrid1f

Parameters:
nu - steps
u1 - low u
u2 - high u

mapmesh1f

void mapmesh1f(int style,
               int from,
               int to)
Evaluates a curve using glEvalMesh1f

Parameters:
style - Backend.N_MESHFILL/N_MESHLINE/N_MESHPOINT
from - lowest param
to - highest param


Copyright 2010 JogAmp Community.