diff options
author | David Walter Seikel | 2013-01-13 17:29:19 +1000 |
---|---|---|
committer | David Walter Seikel | 2013-01-13 17:29:19 +1000 |
commit | 07274513e984f0b5544586c74508ccd16e7dcafa (patch) | |
tree | b32ff2a9136fbc1a4a6a0ed1e4d79cde0f5f16d9 /libraries/ecore/src/lib/ecore_psl1ght/spursutil.c | |
parent | Added Irrlicht 1.8, but without all the Windows binaries. (diff) | |
download | SledjHamr-07274513e984f0b5544586c74508ccd16e7dcafa.zip SledjHamr-07274513e984f0b5544586c74508ccd16e7dcafa.tar.gz SledjHamr-07274513e984f0b5544586c74508ccd16e7dcafa.tar.bz2 SledjHamr-07274513e984f0b5544586c74508ccd16e7dcafa.tar.xz |
Remove EFL, since it's been released now.
Diffstat (limited to 'libraries/ecore/src/lib/ecore_psl1ght/spursutil.c')
-rw-r--r-- | libraries/ecore/src/lib/ecore_psl1ght/spursutil.c | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/libraries/ecore/src/lib/ecore_psl1ght/spursutil.c b/libraries/ecore/src/lib/ecore_psl1ght/spursutil.c deleted file mode 100644 index 27b5c1d..0000000 --- a/libraries/ecore/src/lib/ecore_psl1ght/spursutil.c +++ /dev/null | |||
@@ -1,62 +0,0 @@ | |||
1 | #include "spursutil.h" | ||
2 | #include <sys/spu.h> | ||
3 | |||
4 | #define SPURS_DEFAULT_PREFIX_NAME "spursutil" | ||
5 | |||
6 | Spurs * | ||
7 | initSpurs(const char *prefix_name) | ||
8 | { | ||
9 | Spurs *spurs = NULL; | ||
10 | SpursAttribute attributeSpurs; | ||
11 | int ret; | ||
12 | int i; | ||
13 | |||
14 | ret = sysSpuInitialize (6, 0); | ||
15 | printf ("sysSpuInitialize return %d\n", ret); | ||
16 | |||
17 | /* initialize spurs */ | ||
18 | printf ("Initializing spurs\n"); | ||
19 | spurs = (void *)memalign (SPURS_ALIGN, sizeof (Spurs)); | ||
20 | printf ("Initializing spurs attribute\n"); | ||
21 | |||
22 | ret = spursAttributeInitialize (&attributeSpurs, 5, 250, 1000, true); | ||
23 | if (ret) | ||
24 | { | ||
25 | printf ("error : spursAttributeInitialize failed %x\n", ret); | ||
26 | goto error; | ||
27 | } | ||
28 | |||
29 | printf ("Setting name prefix\n"); | ||
30 | if (!prefix_name) | ||
31 | prefix_name = SPURS_DEFAULT_PREFIX_NAME; | ||
32 | ret = spursAttributeSetNamePrefix (&attributeSpurs, | ||
33 | prefix_name, strlen (prefix_name)); | ||
34 | if (ret) | ||
35 | { | ||
36 | printf ("error : spursAttributeInitialize failed %x\n", ret); | ||
37 | goto error; | ||
38 | } | ||
39 | |||
40 | printf ("Initializing with attribute\n"); | ||
41 | ret = spursInitializeWithAttribute (spurs, &attributeSpurs); | ||
42 | if (ret) | ||
43 | { | ||
44 | printf ("error: spursInitializeWithAttribute failed %x\n", ret); | ||
45 | goto error; | ||
46 | } | ||
47 | |||
48 | return spurs; | ||
49 | |||
50 | error: | ||
51 | if (spurs) | ||
52 | free (spurs); | ||
53 | return NULL; | ||
54 | } | ||
55 | |||
56 | void | ||
57 | endSpurs(Spurs *spurs) | ||
58 | { | ||
59 | spursFinalize (spurs); | ||
60 | free (spurs); | ||
61 | } | ||
62 | |||