summaryrefslogtreecommitdiff
path: root/3dc/win95/TOOLCHNK.CPP
diff options
context:
space:
mode:
authorSteven Fuller <relnev@icculus.org>2001-07-01 00:55:22 +0000
committerPatryk Obara <dreamer.tan@gmail.com>2019-08-20 02:09:04 +0200
commit2186d5f3f95cd74a070a490d899291648d58667a (patch)
tree55241a1afa3e1a22e0b6593a8dead0b703800f44 /3dc/win95/TOOLCHNK.CPP
parent218ca90543758a20ac326e444ca0643174ca7384 (diff)
Initial revision
Diffstat (limited to '3dc/win95/TOOLCHNK.CPP')
-rw-r--r--3dc/win95/TOOLCHNK.CPP41
1 files changed, 0 insertions, 41 deletions
diff --git a/3dc/win95/TOOLCHNK.CPP b/3dc/win95/TOOLCHNK.CPP
deleted file mode 100644
index b4a897b..0000000
--- a/3dc/win95/TOOLCHNK.CPP
+++ /dev/null
@@ -1,41 +0,0 @@
-#include "toolchnk.hpp"
-
-#ifdef cencon
-#define new my_new
-#endif
-
-//macro for helping to force inclusion of chunks when using libraries
-FORCE_CHUNK_INCLUDE_IMPLEMENT(toolchnk)
-
-RIF_IMPLEMENT_DYNCREATE("CAMORIGN",Camera_Origin_Chunk)
-
-Camera_Origin_Chunk::Camera_Origin_Chunk(Chunk_With_Children* parent)
-:Chunk(parent,"CAMORIGN")
-{
- location.x=0;
- location.y=0;
- location.z=0;
- ChunkMatrix identity={1,0,0,0,1,0,0,0,1};
- orientation=identity;
-}
-
-Camera_Origin_Chunk::Camera_Origin_Chunk(Chunk_With_Children* parent,const char* data,size_t )
-:Chunk(parent,"CAMORIGN")
-{
- location=*(ChunkVector*)data;
- data+=sizeof(ChunkVector);
- orientation=*(ChunkMatrix*)data;
-}
-
-void Camera_Origin_Chunk::fill_data_block(char * data_start)
-{
- strncpy (data_start, identifier, 8);
- data_start += 8;
- *((int *) data_start) = chunk_size;
- data_start += 4;
-
- *(ChunkVector*)data_start=location;
- data_start+=sizeof(ChunkVector);
- *(ChunkMatrix*)data_start=orientation;
-}
-