示例#1
0
Vector3 ShapeSW::get_support(const Vector3& p_normal) const {

	Vector3 res;
	int amnt;
	get_supports(p_normal,1,&res,amnt);
	return res;
}
示例#2
0
Vector2 Shape2DSW::get_support(const Vector2& p_normal) const {

	Vector2 res[2];
	int amnt;
	get_supports(p_normal,res,amnt);
	return res[0];
}
示例#3
0
int handle(Request request, Response response)
{
	if(!get_supports(request->get_uri()->get_filesuffix())) {
		return FALSE;
	}
	::handle(request, response);

	if(response->get_content_size()) {
		int i;
		string *content;

		content = response->get_content();
		for(i = 0; i < sizeof(content); i++) {
			content[i] = unentity(content[i]);
		}

		content[0] = "<PRE>\n" + content[0];
		content[sizeof(content)-1] += "</PRE>\n";

		response->set_header("Content-Length", response->get_content_length());
		response->set_header("Content-Type", "text/html");
	}
	return TRUE;
}