-
-
Notifications
You must be signed in to change notification settings - Fork 454
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
550 changed files
with
89,326 additions
and
86,934 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#include "stdafx.h" | ||
#include "Include/xrAPI/xrAPI.h" | ||
#include "stdafx.h" | ||
|
||
EngineGlobalEnvironment GlobalEnv = {}; | ||
bool g_dedicated_server = false; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
#include "stdafx.h" | ||
#include "stdafx.h" | ||
|
||
#include "animation.h" | ||
#include "animation.h" | ||
|
||
using namespace animation; | ||
using namespace animation; | ||
|
||
const channal_rule channels::rules[channels::max] = { { lerp, lerp }, { lerp, lerp }, { lerp, add }, {lerp, add } }; | ||
const channal_rule channels::rules[channels::max] = {{lerp, lerp}, {lerp, lerp}, {lerp, add}, {lerp, add}}; | ||
|
||
channels::channels( ) | ||
channels::channels() | ||
{ | ||
init( ); | ||
init(); | ||
} | ||
|
||
void channels::init( ) | ||
void channels::init() | ||
{ | ||
std::fill( factors, factors + max, 1.f ); | ||
std::fill(factors, factors + max, 1.f); | ||
} | ||
|
||
void channels:: set_factor ( u16 channel, float factor ) | ||
void channels::set_factor(u16 channel, float factor) | ||
{ | ||
VERIFY( channel < max ); | ||
factors[channel] = factor; | ||
VERIFY(channel < max); | ||
factors[channel] = factor; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,48 @@ | ||
#pragma once | ||
|
||
#include "KinematicAnimatedDefs.h" | ||
#include "KinematicAnimatedDefs.h" | ||
|
||
namespace animation | ||
namespace animation | ||
{ | ||
enum mix_type | ||
{ | ||
lerp =0 , | ||
add , | ||
}; | ||
|
||
struct channal_rule | ||
{ | ||
mix_type intern_; | ||
mix_type extern_; | ||
}; | ||
|
||
struct channel_def | ||
{ | ||
float factor; | ||
channal_rule rule; | ||
}; | ||
|
||
class channels | ||
{ | ||
public: | ||
static const u32 max = MAX_CHANNELS; | ||
|
||
private: | ||
static const channal_rule rules [ max ]; | ||
float factors [ max ]; | ||
public: | ||
channels ( ); | ||
void init ( ); | ||
void set_factor ( u16 channel, float factor ); | ||
public: | ||
|
||
IC const channal_rule &rule( u16 channel ) | ||
{ | ||
return rules[ channel ]; | ||
} | ||
|
||
IC void get_def ( u16 channel, channel_def &def ) | ||
{ | ||
VERIFY( channel < max ); | ||
def.rule = rules[ channel ]; | ||
def.factor = factors[ channel ]; | ||
} | ||
|
||
}; | ||
enum mix_type | ||
{ | ||
lerp = 0, | ||
add, | ||
}; | ||
|
||
struct channal_rule | ||
{ | ||
mix_type intern_; | ||
mix_type extern_; | ||
}; | ||
|
||
struct channel_def | ||
{ | ||
float factor; | ||
channal_rule rule; | ||
}; | ||
|
||
class channels | ||
{ | ||
public: | ||
static const u32 max = MAX_CHANNELS; | ||
|
||
private: | ||
static const channal_rule rules[max]; | ||
float factors[max]; | ||
|
||
public: | ||
channels(); | ||
void init(); | ||
void set_factor(u16 channel, float factor); | ||
|
||
public: | ||
IC const channal_rule& rule(u16 channel) { return rules[channel]; } | ||
IC void get_def(u16 channel, channel_def& def) | ||
{ | ||
VERIFY(channel < max); | ||
def.rule = rules[channel]; | ||
def.factor = factors[channel]; | ||
} | ||
}; | ||
}; |
Oops, something went wrong.