Mirrored rendering by libvitaboy Renderer

The next task is to add functionality to the far library to make it suitable for use directly by libvitaboy Renderer.# Please enter the commit message for your changes. Lines starting
This commit is contained in:
Fatbag 2012-10-27 23:45:56 -05:00
parent 6393955683
commit bb904c4698
14 changed files with 116 additions and 75 deletions

View file

@ -25,6 +25,10 @@
#include <stdio.h>
#include <FileHandler.hpp>
/****
** Bytestream
*/
class VBFile_t {
private:
const uint8_t *Buffer, *Position;
@ -139,6 +143,7 @@ void ReadPropEntry(KeyValuePair_t& Entry);
void ReadPropEntries(Prop_t& Prop);
void ReadPropsList(PropsList_t& PropsList);
float DotProduct(Rotation_t * q1, Rotation_t * q2);
void Normalize(Rotation_t * q);
void CombineQuaternions(Rotation_t * Destination, Rotation_t * Source);
void FindQuaternionMatrix(float * Matrix, Rotation_t * Quaternion);
@ -214,6 +219,7 @@ struct Appearance_t {
void ReadAppearance(Appearance_t& Appearance);
/****
** Binding (*.bnd)
*/