Searched refs:unit_vertices (Results 1 – 3 of 3) sorted by relevance
/dports/games/freeorion/freeorion-0.4.10.2/GG/src/ |
H A D | DrawUtil.cpp | 235 bool calc_vertices = unit_vertices.size() == 0; in BubbleArc() 237 unit_vertices.resize(2 * (SLICES + 1), 0.0); in BubbleArc() 240 unit_vertices[j*2] = cos(-theta); in BubbleArc() 241 unit_vertices[j*2+1] = sin(-theta); in BubbleArc() 273 glVertex2f(unit_vertices[X], unit_vertices[Y]); in BubbleArc() 310 bool calc_vertices = unit_vertices.size() == 0; in CircleArc() 315 unit_vertices[j*2] = cos(-theta); in CircleArc() 316 unit_vertices[j*2+1] = sin(-theta); in CircleArc() 344 glVertex2f(unit_vertices[X] * inner_radius, unit_vertices[Y] * inner_radius); in CircleArc() 360 glVertex2f(unit_vertices[X], unit_vertices[Y]); in CircleArc() [all …]
|
/dports/games/freeorion/freeorion-0.4.10.2/UI/ |
H A D | CUIDrawUtil.cpp | 83 std::vector<double>& unit_vertices = unit_circle_coords[SLICES]; in BufferStoreCircleArcVertices() local 84 bool calc_vertices = unit_vertices.size() == 0; in BufferStoreCircleArcVertices() 86 unit_vertices.resize(2 * (SLICES + 1), 0.0); in BufferStoreCircleArcVertices() 89 unit_vertices[j*2] = std::cos(-theta); in BufferStoreCircleArcVertices() 90 unit_vertices[j*2+1] = std::sin(-theta); in BufferStoreCircleArcVertices() 111 …fer.store(static_cast<GLfloat>(center_x + unit_vertices[X] * r), static_cast<GLfloat>(center_y + u… in BufferStoreCircleArcVertices() 133 …fer.store(static_cast<GLfloat>(center_x + unit_vertices[X] * r), static_cast<GLfloat>(center_y + u… in BufferStoreCircleArcVertices() 138 …fer.store(static_cast<GLfloat>(center_x + unit_vertices[X] * r), static_cast<GLfloat>(center_y + u… in BufferStoreCircleArcVertices() 149 …fer.store(static_cast<GLfloat>(center_x + unit_vertices[X] * r), static_cast<GLfloat>(center_y + u… in BufferStoreCircleArcVertices()
|
/dports/games/megaglest/megaglest-source-3.13.0/source/glest_game/graphics/ |
H A D | renderer.cpp | 6264 vector<Vec2f> unit_vertices; 6265 unit_vertices.resize(visibleUnitList.size()*4); 6281 unit_vertices[unitIdx] = Vec2f(mx + pos.x*zoom.x, my + mh - (pos.y*zoom.y)); 6285 unit_vertices[unitIdx] = Vec2f(mx + (pos.x+1)*zoom.x+size, my + mh - (pos.y*zoom.y)); 6293 unit_vertices[unitIdx] = Vec2f(mx + pos.x*zoom.x, my + mh - ((pos.y+size)*zoom.y)); 6301 glVertexPointer(2, GL_FLOAT, 0, &unit_vertices[0]); 6426 vector<Vec2f> unit_vertices; 6427 unit_vertices.resize(markedCells.size()*4); 6447 unit_vertices[unitIdx] = Vec2f(mx + pos.x*zoom.x, my + mh - (pos.y*zoom.y)); 6459 unit_vertices[unitIdx] = Vec2f(mx + pos.x*zoom.x, my + mh - ((pos.y+size)*zoom.y)); [all …]
|