view old/simple_render/scene_graph_pack.h @ 507:735f76483bb2

Reorganization..
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 12 Oct 2009 09:39:35 +0900
parents TaskManager/Test/simple_render/scene_graph_pack.h@5c194c71eca8
children
line wrap: on
line source

#ifndef INCLUDED_SCENE_GRAPH_PACK
#define INCLUDED_SCENE_GRAPH_PACK

#ifndef INCLUDED_SPU_SPAN
#include "SpuSpan.h"
#endif

/*
enum Tree{
  PUSH,
  POP,
  SHIFT
};
*/

typedef struct SceneGraphNode {
  int size;
  float vertex[36*3];
  float texture[36*2];
  float obj_pos[4];
  float angle[4];
  float translation[16];
  long *tex_addr, tex_width, tex_height;
  int id;
  int move, interaction;
  //void (*move)();
  //int op[32]; // push pop shift   =>   enum
  int pn;
}SceneGraphNode, *SceneGraphNodePtr;

typedef struct SceneGraphInfo {
  int size;
}SceneGraphInfo;

typedef struct SceneGraphPack {
  SpuSpan *ssl;
  SceneGraphInfo info;
  SceneGraphNode node[16];    // variable length array
}SceneGraphPack;


#endif