Home | History | Annotate | Download | only in model

Lines Matching refs:vb

117         VertexBuffer vb = mesh.getBuffer(Type.Index);
119 if (vb.getFormat() == Format.UnsignedInt && vertCount <= 0xffff){
124 }else if (vb.getFormat() == Format.UnsignedShort && vertCount <= 0xff){
131 Buffer newBuf = VertexBuffer.createBuffer(targetFmt, vb.getNumComponents(), src.size());
134 newVb.setupData(vb.getUsage(), vb.getNumComponents(), targetFmt, newBuf);
181 public static VertexBuffer convertToUByte(VertexBuffer vb){
182 FloatBuffer fb = (FloatBuffer) vb.getData();
186 VertexBuffer newVb = new VertexBuffer(vb.getBufferType());
187 newVb.setupData(vb.getUsage(),
188 vb.getNumComponents(),
195 public static VertexBuffer convertToFixed(VertexBuffer vb){
196 if (vb.getFormat() == Format.Int)
197 return vb;
199 FloatBuffer fb = (FloatBuffer) vb.getData();
203 VertexBuffer newVb = new VertexBuffer(vb.getBufferType());
204 newVb.setupData(vb.getUsage(),
205 vb.getNumComponents(),
211 public static VertexBuffer convertToFloat(VertexBuffer vb){
212 if (vb.getFormat() == Format.Float)
213 return vb;
215 IntBuffer ib = (IntBuffer) vb.getData();
219 VertexBuffer newVb = new VertexBuffer(vb.getBufferType());
220 newVb.setupData(vb.getUsage(),
221 vb.getNumComponents(),