Refresh 1

This commit is contained in:
n64 committed 2019-09-01 15:50:50 -04:00
1 parent c6102eb802
commit 1ef98ec785
475 files changed
+100280 -97252

No files matched your search

+15 -11
View File
@@ -9,8 +9,9 @@
#include "game/area.h"
#include "geo_layout.h"
/** Takes a pointer to three shorts (supplied by a geo layout script) and
* copies it to the destination float vector.
/**
* Takes a pointer to three shorts (supplied by a geo layout script) and
* copies it to the destination float vector.
*/
s16 *read_vec3s_to_vec3f(Vec3f dst, s16 *src) {
dst[0] = *src++;
@@ -19,9 +20,10 @@ s16 *read_vec3s_to_vec3f(Vec3f dst, s16 *src) {
return src;
}
/** Takes a pointer to three shorts (supplied by a geo layout script) and
* copies it to the destination vector. It's essentially a memcpy but consistent
* with the other two 'geo-script vector to internal vector' functions.
/**
* Takes a pointer to three shorts (supplied by a geo layout script) and
* copies it to the destination vector. It's essentially a memcpy but consistent
* with the other two 'geo-script vector to internal vector' functions.
*/
s16 *read_vec3s(Vec3s dst, s16 *src) {
dst[0] = *src++;
@@ -30,9 +32,10 @@ s16 *read_vec3s(Vec3s dst, s16 *src) {
return src;
}
/** Takes a pointer to three angles in degrees (supplied by a geo layout script)
* and converts it to a vector of three in-game angle units in [-32768, 32767]
* range.
/**
* Takes a pointer to three angles in degrees (supplied by a geo layout script)
* and converts it to a vector of three in-game angle units in [-32768, 32767]
* range.
*/
s16 *read_vec3s_angle(Vec3s dst, s16 *src) {
dst[0] = ((*src++) << 15) / 180;
@@ -41,9 +44,10 @@ s16 *read_vec3s_angle(Vec3s dst, s16 *src) {
return src;
}
/** Add the given graph node as a child to the current top of the gfx stack:
* 'gCurGraphNodeList'. This is called from geo_layout commands to add nodes
* to the scene graph.
/**
* Add the given graph node as a child to the current top of the gfx stack:
* 'gCurGraphNodeList'. This is called from geo_layout commands to add nodes
* to the scene graph.
*/
void register_scene_graph_node(struct GraphNode *graphNode) {
if (graphNode != NULL) {