File: util.h

package info (click to toggle)
dangen 0.5-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,880 kB
  • ctags: 1,664
  • sloc: ansic: 49,744; sh: 1,021; yacc: 494; makefile: 320; lex: 142
file content (25 lines) | stat: -rw-r--r-- 764 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* $Id: util.h,v 1.22 2005/06/29 05:49:21 oohara Exp $ */

#ifndef __DANGEN_UTIL_H__
#define __DANGEN_UTIL_H__

#include "tenm_object.h"

int util_init(int width, int height);
void util_quit(void);

int draw_string(int x, int y, const char *string, int length);
int draw_string_int(int x, int y, const int *string, int length);

int in_window_object(const tenm_object *p);
int in_window_primitive(const tenm_primitive *p);

void vector_rotate(double *result, const double *v, int theta);
void vector_rotate_bounded(double *result, const double *v,
                           const double *a, int theta);

/* table manipulation function */
int delete_enemy_shot(tenm_object *my, int n);
int delete_enemy(tenm_object *my, int n);

#endif /* not __DANGEN_UTIL_H__ */