Пример #1
0
void
M_LineWrite3(AG_DataSource *ds, M_Line3 *L)
{
	M_WriteVector3(ds, &L->p);
	M_WriteVector3(ds, &L->d);
	M_WriteReal(ds, L->t);
}
Пример #2
0
void
M_LineWrite2(AG_DataSource *ds, M_Line2 *L)
{
	M_WriteVector2(ds, &L->p);
	M_WriteVector2(ds, &L->d);
	M_WriteReal(ds, L->t);
}
Пример #3
0
void
M_WriteVector_FPU(AG_DataSource *buf, const M_Vector *v)
{
	Uint i;

	AG_WriteUint32(buf, (Uint)MVECSIZE(v));
	for (i = 0; i < MVECSIZE(v); i++)
		M_WriteReal(buf, v->v[i]);
}
Пример #4
0
void
M_CircleWrite3(AG_DataSource *ds, M_Circle3 *C)
{
	M_WriteVector3(ds, &C->p);
	M_WriteReal(ds, C->r);
}
Пример #5
0
void
M_CircleWrite2(AG_DataSource *ds, M_Circle2 *C)
{
	M_WriteVector2(ds, &C->p);
	M_WriteReal(ds, C->r);
}