mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
65 lines
No EOL
1.3 KiB
C++
65 lines
No EOL
1.3 KiB
C++
//
|
|
// head.h
|
|
// interface
|
|
//
|
|
// Created by Philip Rosedale on 9/11/12.
|
|
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
|
|
//
|
|
|
|
#ifndef interface_head_h
|
|
#define interface_head_h
|
|
|
|
#include <iostream>
|
|
#include "field.h"
|
|
#include "world.h"
|
|
#include <GLUT/glut.h>
|
|
|
|
class Head {
|
|
float noise;
|
|
float Pitch;
|
|
float Yaw;
|
|
float Roll;
|
|
float PitchRate;
|
|
float YawRate;
|
|
float RollRate;
|
|
float EyeballPitch[2];
|
|
float EyeballYaw[2];
|
|
float EyebrowPitch[2];
|
|
float EyebrowRoll[2];
|
|
float interPupilDistance;
|
|
float interBrowDistance;
|
|
float NominalPupilSize;
|
|
float PupilSize;
|
|
float MouthPitch;
|
|
float MouthYaw;
|
|
float MouthWidth;
|
|
float MouthHeight;
|
|
|
|
float PitchTarget;
|
|
float YawTarget;
|
|
|
|
float NoiseEnvelope;
|
|
|
|
float PupilConverge;
|
|
|
|
glm::vec3 position;
|
|
|
|
public:
|
|
Head(void);
|
|
void reset();
|
|
void setNoise (float mag) { noise = mag; }
|
|
void setPitch(float p) {Pitch = p; }
|
|
void setYaw(float y) {Yaw = y; }
|
|
void addPitch(float p) {Pitch -= p; }
|
|
void addYaw(float y){Yaw -= y; }
|
|
void getPitch(float);
|
|
void render();
|
|
void simulate(float);
|
|
int transmit(char*);
|
|
void receive(float);
|
|
void SetNewHeadTarget(float, float);
|
|
glm::vec3 getPos() { return position; };
|
|
void setPos(glm::vec3 newpos) { position = newpos; };
|
|
};
|
|
|
|
#endif |