ChrisOS Research ProjectOperating systems · language systems · graphics · machine emulation
DOCUMENTATION ARCHIVEMAIN BRANCH
ChrisOS/Source reference: GAMES/MINE/CUBE.CC

Source reference: GAMES/MINE/CUBE.CC

Deterministic source record. The complete textual file is reproduced below; this page does not replace architectural interpretation in the authored chapters.

File identity

Field Value
Path GAMES/MINE/CUBE.CC
Lines 36
Bytes 699
SHA-256 3a9c8f664434dc4f286d0dab2cef6799250e0266bf69cc533fa29d44f7d999aa
ChrisOS revision da3df29cb397932c43d32373871fb9380e688ade

Detected syntactic dependencies

Line Include
— No preprocessor include detected.

Detected symbols

Line Symbol
1 cube_init
33 draw_mob

Complete source

The following block is the complete textual file at the recorded revision. No lines are elided, abbreviated or paraphrased.

void cube_init() {
    g_v[0] = -0.4;
    g_v[1] = 0.0;
    g_v[2] = -0.4;
    g_v[3] = 0.4;
    g_v[4] = 0.0;
    g_v[5] = -0.4;
    g_v[6] = 0.4;
    g_v[7] = 0.8;
    g_v[8] = -0.4;
    g_v[9] = -0.4;
    g_v[10] = 0.8;
    g_v[11] = -0.4;
    g_v[12] = -0.4;
    g_v[13] = 0.0;
    g_v[14] = 0.4;
    g_v[15] = 0.4;
    g_v[16] = 0.0;
    g_v[17] = 0.4;
    g_v[18] = 0.4;
    g_v[19] = 0.8;
    g_v[20] = 0.4;
    g_v[21] = -0.4;
    g_v[22] = 0.8;
    g_v[23] = 0.4;
    g_mat[0] = 1.0;
    g_mat[5] = 1.0;
    g_mat[10] = 1.0;
    g_mat[15] = 1.0;
    transform(g_v, g_mat, 8);
}

void draw_mob(float x, float y, float z, float yaw, int color) {
    meshf(g_v, 8, 12, x, y, z, yaw, color);
}

Role of this record

The atlas guarantees file-by-file traceability. Responsibility, invariants, ownership, concurrency, security, performance and subsystem interactions belong in authored chapters and must cite this file when applicable.

Document record ID: source-3a9c8f664434dc4f Reviewed source: da3df29cb397 Class: generated-source-reference