Пример #1
0
	void kore_graphics_setmatrix(BKore_ConstantLocation* location, float _00, float _01, float _02, float _03, float _10, float _11, float _12, float _13, float _20, float _21, float _22, float _23, float _30, float _31, float _32, float _33)
	{
		Kore::mat4 value;
		value.Set(0, 0, _00); value.Set(0, 1, _10); value.Set(0, 2, _20); value.Set(0, 3, _30);
		value.Set(1, 0, _01); value.Set(1, 1, _11); value.Set(1, 2, _21); value.Set(1, 3, _31);
		value.Set(2, 0, _02); value.Set(2, 1, _12); value.Set(2, 2, _22); value.Set(2, 3, _32);
		value.Set(3, 0, _03); value.Set(3, 1, _13); value.Set(3, 2, _23); value.Set(3, 3, _33);
		Kore::Graphics::setMatrix(*reinterpret_cast<Kore::ConstantLocation*>(location), value);
	}
Пример #2
0
extern "C" void hl_kore_compute_set_matrix(vbyte *location,
	float _00, float _10, float _20, float _30,
	float _01, float _11, float _21, float _31,
	float _02, float _12, float _22, float _32,
	float _03, float _13, float _23, float _33) {
	Kore::ComputeConstantLocation* loc = (Kore::ComputeConstantLocation*)location;
	Kore::mat4 value;
	value.Set(0, 0, _00); value.Set(1, 0, _01); value.Set(2, 0, _02); value.Set(3, 0, _03);
	value.Set(0, 1, _10); value.Set(1, 1, _11); value.Set(2, 1, _12); value.Set(3, 1, _13);
	value.Set(0, 2, _20); value.Set(1, 2, _21); value.Set(2, 2, _22); value.Set(3, 2, _23);
	value.Set(0, 3, _30); value.Set(1, 3, _31); value.Set(2, 3, _32); value.Set(3, 3, _33);
	Kore::Compute::setMatrix(*loc, value);
}