List of usage examples for org.lwjgl.opengl GL11 glLoadName
public static native void glLoadName(@NativeType("GLuint") int name);
From source file:com.irr310.i3d.scene.element.I3dElement.java
License:Open Source License
/** * Internal public method Mthode principal du rendu de selection d'un * lment. Cette mthode appelle le code de rendu de selection spcifique * de l'lment via la mthode doSelect si ncessaire. Les animations * n'entrent pas en jeu dans le rendu de selection. * /*from w ww.ja v a2 s . co m*/ * @param gl * context gl du rendu de selection * @param camera * point de vue */ final public void select(I3dCamera camera, long parentId) { if (!inited) { init(); } if (!isTangible() || !showShape) { return; } GL11.glPushMatrix(); // TODO: verify this cast. Maybe change id from long to int if (selectable) { GL11.glLoadName((int) id); } if (rotation.x != 0) { GL11.glRotatef(rotation.x, 1, 0, 0); } if (rotation.y != 0) { GL11.glRotatef(rotation.y, 0, 1, 0); } if (rotation.z != 0) { GL11.glRotatef(rotation.z, 0, 0, 1); } if (position.x != 0 || position.y != 0 || position.z != 0) { GL11.glTranslatef(position.x, position.y, position.z); } if (scale.x != 1 || scale.y != 1 || scale.z != 1) { GL11.glScalef(scale.x, scale.y, scale.z); } if (selectable) { doSelect(camera, id); } else { doSelect(camera, parentId); } if (selectable) { GL11.glLoadName((int) parentId); } GL11.glPopMatrix(); }
From source file:fr.def.iss.vd2.lib_v3d.element.V3DElement.java
License:Open Source License
/** * Internal public method Mthode principal du rendu de selection d'un * lment. Cette mthode appelle le code de rendu de selection spcifique * de l'lment via la mthode doSelect si ncessaire. Les animations * n'entrent pas en jeu dans le rendu de selection. * // w ww .j ava 2 s. c om * @param gl * context gl du rendu de selection * @param camera * point de vue */ final public void select(V3DCamera camera, long parentId) { if (!inited) { init(); } if (!isTangible() || !showShape) { return; } GL11.glPushMatrix(); // TODO: verify this cast. Maybe change id from long to int if (selectable) { GL11.glLoadName((int) id); } if (rotation.x != 0) { GL11.glRotatef(rotation.x, 1, 0, 0); } if (rotation.y != 0) { GL11.glRotatef(rotation.y, 0, 1, 0); } if (rotation.z != 0) { GL11.glRotatef(rotation.z, 0, 0, 1); } if (position.x != 0 || position.y != 0 || position.z != 0) { GL11.glTranslatef(position.x, position.y, position.z); } if (scale.x != 1 || scale.y != 1 || scale.z != 1) { GL11.glScalef(scale.x, scale.y, scale.z); } if (selectable) { doSelect(camera, id); } else { doSelect(camera, parentId); } if (selectable) { GL11.glLoadName((int) parentId); } GL11.glPopMatrix(); }
From source file:tk.ivybits.engine.gl.GL.java
License:Open Source License
public static void glLoadName(int a) { GL11.glLoadName(a); }