Blob Blame Raw
#ifndef TREE_H
#define TREE_H


#include <helianthus.h>

#include "common.h"


typedef struct {
  int seed;
  double x, y;
  double angle;
  double width;
  
  unsigned int texId;
  double bl, bt, br, bb;
} Tree;


void treeGenerate(Tree *t, double x, double y);
void treeDraw(const Tree *t, double time, int flags);
void treePrerender(Tree *t, Framebuffer fb);
void treeDrawPrerendered(Tree *t);



#endif