Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.example.dipl_stickman_dirt_jumping;
- import java.nio.ByteBuffer;
- import java.nio.ByteOrder;
- import java.nio.FloatBuffer;
- import java.nio.ShortBuffer;
- import javax.microedition.khronos.opengles.GL10;
- public class Stickman extends Mesh{
- public Stickman(float width, float height, float depth)
- {
- width /= 2;
- height /= 2;
- depth /= 2;
- float vertices[] = { -width,height,depth,
- -width,-height,depth,
- width,-height,depth,
- width,height,depth
- };
- short indices[] = { 0,1,2,
- 0,2,3
- };
- setVertices(vertices);
- setIndices(indices);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement