/* * Copyright (c) 2008 Vitaliano Palmieri Neto * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * Permission is granted to anyone to use this software for any purpose, * including commercial applications, and to alter it and redistribute it * freely, subject to the following restrictions: * 1. The origin of this software must not be misrepresented; you must not * claim that you wrote the original software. If you use this software * in a product, an acknowledgment in the product documentation would be * appreciated but is not required. * 2. Altered source versions must be plainly marked as such, and must not be * misrepresented as being the original software. * 3. This notice may not be removed or altered from any source distribution. */
/* * Copyright (c) 2008 Vitaliano Palmieri Neto * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * Permission is granted to anyone to use this software for any purpose, * including commercial applications, and to alter it and redistribute it * freely, subject to the following restrictions: * 1. The origin of this software must not be misrepresented; you must not * claim that you wrote the original software. If you use this software * in a product, an acknowledgment in the product documentation would be * appreciated but is not required. * 2. Altered source versions must be plainly marked as such, and must not be * misrepresented as being the original software. * 3. This notice may not be removed or altered from any source distribution. */
int NUMPOINTS =24+(int)radius/20;//24; constfloat PI =3.14159f;
std::vector<b2Vec2> vertices; //hgeVector Circle[NUMPOINTS + 1]; int i;//,j; float X; float Y; float Theta; float WedgeAngle;//Size of angle between two points on the circle (single wedge)
//Set up vertices for a circle //Used <= in the for statement to ensure last point meets first point (closed circle) for(i=0; i<NUMPOINTS>Gfx_BeginScene(); for(int32 k =0, j =1; k <signed>=(signed)vertices.size())?0:j; hge->Gfx_RenderLine(adjustW + vertices[k].x, adjustH - vertices[k].y, adjustW + vertices[j].x, adjustH - vertices[j].y, ARGB(255,color.r*255,color.g*255,color.b*255)); } //hge->Gfx_EndScene(); }
int NUMPOINTS =24+(int)radius/20;//24; constfloat PI =3.14159f;
std::vector<b2Vec2> vertices; //hgeVector Circle[NUMPOINTS + 1]; int i;//,j; float X; float Y; float Theta; float WedgeAngle;//Size of angle between two points on the circle (single wedge)
//Set up vertices for a circle //Used <= in the for statement to ensure last point meets first point (closed circle) for(i=0; i<NUMPOINTS>Gfx_BeginScene();