Home
last modified time | relevance | path

Searched refs:Polygon (Results 1 – 25 of 107) sorted by relevance

12345

/external/mesa3d/src/mesa/main/
Dpolygon.c56 if (ctx->Polygon.CullFaceMode == mode) in cull_face()
67 ctx->Polygon.CullFaceMode = mode; in cull_face()
108 if (ctx->Polygon.FrontFace == mode) in front_face()
118 ctx->Polygon.FrontFace = mode; in front_face()
187 if (ctx->Polygon.FrontMode == mode) in polygon_mode()
191 ctx->Polygon.FrontMode = mode; in polygon_mode()
194 if (ctx->Polygon.FrontMode == mode && ctx->Polygon.BackMode == mode) in polygon_mode()
198 ctx->Polygon.FrontMode = mode; in polygon_mode()
199 ctx->Polygon.BackMode = mode; in polygon_mode()
206 if (ctx->Polygon.BackMode == mode) in polygon_mode()
[all …]
Denable.c482 if (ctx->Polygon.CullFlag == state) in _mesa_set_enable()
487 ctx->Polygon.CullFlag = state; in _mesa_set_enable()
784 if (ctx->Polygon.SmoothFlag == state) in _mesa_set_enable()
789 ctx->Polygon.SmoothFlag = state; in _mesa_set_enable()
794 if (ctx->Polygon.StippleFlag == state) in _mesa_set_enable()
799 ctx->Polygon.StippleFlag = state; in _mesa_set_enable()
804 if (ctx->Polygon.OffsetPoint == state) in _mesa_set_enable()
809 ctx->Polygon.OffsetPoint = state; in _mesa_set_enable()
814 if (ctx->Polygon.OffsetLine == state) in _mesa_set_enable()
819 ctx->Polygon.OffsetLine = state; in _mesa_set_enable()
[all …]
/external/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_clip.c124 if (ctx->Polygon.CullFlag && in brw_upload_clip_prog()
125 ctx->Polygon.CullFaceMode == GL_FRONT_AND_BACK) in brw_upload_clip_prog()
133 if (!ctx->Polygon.CullFlag || in brw_upload_clip_prog()
134 ctx->Polygon.CullFaceMode != GL_FRONT) { in brw_upload_clip_prog()
135 switch (ctx->Polygon.FrontMode) { in brw_upload_clip_prog()
142 offset_front = ctx->Polygon.OffsetLine; in brw_upload_clip_prog()
146 offset_front = ctx->Polygon.OffsetPoint; in brw_upload_clip_prog()
151 if (!ctx->Polygon.CullFlag || in brw_upload_clip_prog()
152 ctx->Polygon.CullFaceMode != GL_BACK) { in brw_upload_clip_prog()
153 switch (ctx->Polygon.BackMode) { in brw_upload_clip_prog()
[all …]
Dgen6_clip_state.c42 if (brw->ctx.Polygon.FrontMode == GL_POINT || in brw_is_drawing_points()
43 brw->ctx.Polygon.BackMode == GL_POINT) { in brw_is_drawing_points()
66 if (brw->ctx.Polygon.FrontMode == GL_LINE || in brw_is_drawing_lines()
67 brw->ctx.Polygon.BackMode == GL_LINE) { in brw_is_drawing_lines()
/external/geojson-jackson/src/test/java/org/geojson/jackson/
DPolygonTest.java5 import org.geojson.Polygon;
20 Polygon polygon = new Polygon(MockData.EXTERNAL); in itShouldSerialize()
28 Polygon polygon = new Polygon(MockData.EXTERNAL); in itShouldSerializeWithHole()
37 Polygon polygon = new Polygon(); in itShouldFailOnAddInteriorRingWithoutExteriorRing()
43 Polygon polygon = mapper.readValue("{\"type\":\"Polygon\",\"coordinates\":" in itShouldDeserialize()
45 + "[[100.2,0.2],[100.8,0.2],[100.8,0.8],[100.2,0.8],[100.2,0.2]]]}", Polygon.class); in itShouldDeserialize()
53 Polygon polygon = new Polygon(); in itShouldSetExteriorRing()
60 Polygon polygon = new Polygon(Arrays.asList( in itShouldReplaceExteriorRing()
DMultiPoligonTest.java6 import org.geojson.Polygon;
18 multiPolygon.add(new Polygon(new LngLatAlt(102, 2), new LngLatAlt(103, 2), new LngLatAlt(103, 3), in itShouldSerialize()
20 Polygon polygon = new Polygon(MockData.EXTERNAL); in itShouldSerialize()
/external/mesa3d/src/mesa/drivers/dri/nouveau/
Dnv10_state_polygon.c38 GLenum mode = ctx->Polygon.CullFaceMode; in nv10_emit_cull_face()
41 PUSH_DATAb(push, ctx->Polygon.CullFlag); in nv10_emit_cull_face()
55 PUSH_DATA (push, ctx->Polygon.FrontFace == GL_CW ? in nv10_emit_front_face()
96 PUSH_DATA (push, nvgl_polygon_mode(ctx->Polygon.FrontMode)); in nv10_emit_polygon_mode()
97 PUSH_DATA (push, nvgl_polygon_mode(ctx->Polygon.BackMode)); in nv10_emit_polygon_mode()
100 PUSH_DATAb(push, ctx->Polygon.SmoothFlag); in nv10_emit_polygon_mode()
109 PUSH_DATAb(push, ctx->Polygon.OffsetPoint); in nv10_emit_polygon_offset()
110 PUSH_DATAb(push, ctx->Polygon.OffsetLine); in nv10_emit_polygon_offset()
111 PUSH_DATAb(push, ctx->Polygon.OffsetFill); in nv10_emit_polygon_offset()
114 PUSH_DATAf(push, ctx->Polygon.OffsetFactor); in nv10_emit_polygon_offset()
[all …]
Dnv04_state_raster.c127 int cull = ctx->Polygon.CullFaceMode; in nv04_emit_control()
128 int front = ctx->Polygon.FrontFace; in nv04_emit_control()
140 if (!ctx->Polygon.CullFlag) in nv04_emit_control()
/external/mesa3d/src/mesa/state_tracker/
Dst_atom_rasterizer.c76 raster->front_ccw = (ctx->Polygon.FrontFace == GL_CCW); in st_update_rasterizer()
113 if (ctx->Polygon.CullFlag) { in st_update_rasterizer()
114 switch (ctx->Polygon.CullFaceMode) { in st_update_rasterizer()
138 raster->fill_front = translate_fill(ctx->Polygon.FrontMode); in st_update_rasterizer()
139 raster->fill_back = translate_fill(ctx->Polygon.BackMode); in st_update_rasterizer()
155 if (ctx->Polygon.OffsetPoint || in st_update_rasterizer()
156 ctx->Polygon.OffsetLine || in st_update_rasterizer()
157 ctx->Polygon.OffsetFill) { in st_update_rasterizer()
158 raster->offset_point = ctx->Polygon.OffsetPoint; in st_update_rasterizer()
159 raster->offset_line = ctx->Polygon.OffsetLine; in st_update_rasterizer()
[all …]
/external/mesa3d/src/mesa/tnl_dd/
Dt_dd_tritmp.h144 mode = ctx->Polygon.BackMode; in TAG()
145 if (ctx->Polygon.CullFlag && in TAG()
146 ctx->Polygon.CullFaceMode != GL_FRONT) { in TAG()
150 mode = ctx->Polygon.FrontMode; in TAG()
151 if (ctx->Polygon.CullFlag && in TAG()
152 ctx->Polygon.CullFaceMode != GL_BACK) { in TAG()
226 offset = ctx->Polygon.OffsetUnits * DEPTH_SCALE; in TAG()
240 offset += MAX2( ac, bc ) * ctx->Polygon.OffsetFactor / ctx->DrawBuffer->_MRD; in TAG()
260 if (DO_OFFSET && ctx->Polygon.OffsetPoint) { in TAG()
273 if (DO_OFFSET && ctx->Polygon.OffsetLine) { in TAG()
[all …]
/external/skia/gm/
Dconcavepaths.cpp18 canvas->drawPath(SkPath::Polygon({{20,20}, {80,20}, {30,30}, {20,80}}, false), paint); in test_concave()
25 canvas->drawPath(SkPath::Polygon({{20,20}, {20,80}, {30,30}, {80,20}}, false), paint); in test_reverse_concave()
33 canvas->drawPath(SkPath::Polygon({{20,20}, {80,80}, {80,20}, {20,80}}, false), paint); in test_bowtie()
41 canvas->drawPath(SkPath::Polygon({{20,20}, {50,40}, {80,20}, {80,80}, {50,60}, {20,80}}, in test_fake_bowtie()
51 canvas->drawPath(SkPath::Polygon({{20,20}, {50,50}, {68,20}, {68,80}, {50,50}, {20,80}}, in test_intruding_vertex()
64 canvas->drawPath(SkPath::Polygon(pts, SK_ARRAY_COUNT(pts), false, in test_inversion_repeat_vertex()
73 canvas->drawPath(SkPath::Polygon({{20,20}, {80,80}, {70,50}, {80,20}, {20,80}, {0,50}}, false, in test_fish()
105 canvas->drawPath(SkPath::Polygon({{30,20}, {50,80}, {70,20}, {20,57}, {80,57}}, false), in test_star()
121 canvas->drawPath(SkPath::Polygon(pts, SK_ARRAY_COUNT(pts), false), paint); in test_twist()
129 canvas->drawPath(SkPath::Polygon({{50,50}, {50,20}, {80,20}, {50,50}, {20,50}, {20,80}}, false), in test_stairstep()
[all …]
Ddaa.cpp54 SkPath path = SkPath::Polygon({{0,0},{0,K},{K*0.5f,K},{K*0.5f,0}}, false);
60 SkPath path = SkPath::Polygon({{K*0.5f,0},{K*0.5f,K},{K,K},{K,0}}, false);
113 SkPath path = SkPath::Polygon({{K*0.5f,0},{0,0},{0,K},{K*0.5f,K},
/external/geojson-jackson/src/main/java/org/geojson/
DPolygon.java8 public class Polygon extends Geometry<List<LngLatAlt>> { class
10 public Polygon() { in Polygon() method in Polygon
13 public Polygon(List<LngLatAlt> polygon) { in Polygon() method in Polygon
17 public Polygon(LngLatAlt... polygon) { in Polygon() method in Polygon
DMultiPolygon.java10 public MultiPolygon(Polygon polygon) { in MultiPolygon()
14 public MultiPolygon add(Polygon polygon) { in add()
DGeoJsonObjectVisitor.java21 T visit(Polygon geoJsonObject); in visit()
64 public T visit(Polygon geoJsonObject) { in visit()
/external/mesa3d/src/mesa/swrast_setup/
Dss_triangle.c126 if (ctx->Polygon.CullFlag) { in _swsetup_render_tri()
127 if (facing == 1 && ctx->Polygon.CullFaceMode != GL_FRONT) in _swsetup_render_tri()
129 if (facing == 0 && ctx->Polygon.CullFaceMode != GL_BACK) in _swsetup_render_tri()
246 if (ctx->Polygon.OffsetPoint || in _swsetup_choose_trifuncs()
247 ctx->Polygon.OffsetLine || in _swsetup_choose_trifuncs()
248 ctx->Polygon.OffsetFill) in _swsetup_choose_trifuncs()
258 if (ctx->Polygon.FrontMode != GL_FILL || in _swsetup_choose_trifuncs()
259 ctx->Polygon.BackMode != GL_FILL || in _swsetup_choose_trifuncs()
Dss_tritmp.h64 mode = facing ? ctx->Polygon.BackMode : ctx->Polygon.FrontMode; in TAG()
140 offset = ctx->Polygon.OffsetUnits; in TAG()
147 offset += MAX2(dzdx, dzdy) * ctx->Polygon.OffsetFactor; in TAG()
157 if ((IND & SS_OFFSET_BIT) && ctx->Polygon.OffsetPoint) { in TAG()
164 if ((IND & SS_OFFSET_BIT) && ctx->Polygon.OffsetLine) { in TAG()
171 if ((IND & SS_OFFSET_BIT) && ctx->Polygon.OffsetFill) { in TAG()
/external/geojson-jackson/src/test/java/org/geojson/
DToStringTest.java52Polygon geometry = new Polygon(new LngLatAlt(10, 20), new LngLatAlt(30, 40), new LngLatAlt(10, 40), in itShouldToStringPolygon()
63 MultiPolygon geometry = new MultiPolygon(new Polygon(new LngLatAlt(10, 20), new LngLatAlt(30, 40), in itShouldToStringMultiPolygon()
65 …geometry.add(new Polygon(new LngLatAlt(5, 20), new LngLatAlt(30, 40), new LngLatAlt(10, 40), new L… in itShouldToStringMultiPolygon()
DGeoJsonObjectVisitorTest.java48 public GeoJsonObject visit(Polygon geoJsonObject) {
49 Assert.assertEquals(Polygon.class, geoJsonObject.getClass());
79 { new MultiLineString(Arrays.asList(new LngLatAlt(12D, 13D))) }, { new Polygon() }, in data()
/external/swiftshader/src/Device/
DPolygon.hpp20 struct Polygon struct
22 Polygon(const float4 *P0, const float4 *P1, const float4 *P2) in Polygon() argument
33 Polygon(const float4 *P, int n) in Polygon() function
DClipper.cpp32 void clipNear(sw::Polygon &polygon) in clipNear()
70 void clipFar(sw::Polygon &polygon) in clipFar()
108 void clipLeft(sw::Polygon &polygon) in clipLeft()
146 void clipRight(sw::Polygon &polygon) in clipRight()
184 void clipTop(sw::Polygon &polygon) in clipTop()
222 void clipBottom(sw::Polygon &polygon) in clipBottom()
276 bool Clipper::Clip(Polygon &polygon, int clipFlagsOr, const DrawCall &draw) in Clip()
DClipper.hpp23 struct Polygon;
43 static bool Clip(Polygon &polygon, int clipFlagsOr, const DrawCall &draw);
DSetupProcessor.hpp30 struct Polygon;
33 …k::Device *device, Primitive *primitive, const Triangle *triangle, const Polygon *polygon, const D…
/external/mesa3d/docs/gallium/
Dpipeline.txt48 | Polygon Culling |
64 | Polygon Offset |
85 | * Polygon Stipple |
/external/rust/crates/plotters/src/element/
Dbasic_shapes.rs291 pub struct Polygon<Coord> { struct
295 impl<Coord> Polygon<Coord> { argument
308 impl<'a, Coord> PointCollection<'a, Coord> for &'a Polygon<Coord> { implementation
316 impl<Coord, DB: DrawingBackend> Drawable<DB> for Polygon<Coord> { implementation
346 da.draw(&Polygon::new(points.clone(), &BLUE)) in test_polygon_element()

12345