@@ -128,7 +128,7 @@ impl VertexBuffer {
128
128
/// # Errors
129
129
///
130
130
/// * [`TetraError::PlatformError`](crate::TetraError::PlatformError) will be returned if the underlying
131
- /// graphics API encounters an error.
131
+ /// graphics API encounters an error.
132
132
pub fn new ( ctx : & mut Context , vertices : & [ Vertex ] ) -> Result < VertexBuffer > {
133
133
VertexBuffer :: with_usage ( ctx, vertices, BufferUsage :: Dynamic )
134
134
}
@@ -140,7 +140,7 @@ impl VertexBuffer {
140
140
/// # Errors
141
141
///
142
142
/// * [`TetraError::PlatformError`](crate::TetraError::PlatformError) will be returned if the underlying
143
- /// graphics API encounters an error.
143
+ /// graphics API encounters an error.
144
144
pub fn with_usage (
145
145
ctx : & mut Context ,
146
146
vertices : & [ Vertex ] ,
@@ -210,7 +210,7 @@ impl IndexBuffer {
210
210
/// # Errors
211
211
///
212
212
/// * [`TetraError::PlatformError`](crate::TetraError::PlatformError) will be returned if the underlying
213
- /// graphics API encounters an error.
213
+ /// graphics API encounters an error.
214
214
pub fn new ( ctx : & mut Context , indices : & [ u32 ] ) -> Result < IndexBuffer > {
215
215
IndexBuffer :: with_usage ( ctx, indices, BufferUsage :: Dynamic )
216
216
}
@@ -222,7 +222,7 @@ impl IndexBuffer {
222
222
/// # Errors
223
223
///
224
224
/// * [`TetraError::PlatformError`](crate::TetraError::PlatformError) will be returned if the underlying
225
- /// graphics API encounters an error.
225
+ /// graphics API encounters an error.
226
226
pub fn with_usage (
227
227
ctx : & mut Context ,
228
228
indices : & [ u32 ] ,
@@ -512,9 +512,9 @@ impl Mesh {
512
512
/// # Errors
513
513
///
514
514
/// * [`TetraError::TessellationError`](crate::TetraError::TessellationError) will be returned if the shape
515
- /// could not be turned into vertex data.
515
+ /// could not be turned into vertex data.
516
516
/// * [`TetraError::PlatformError`](crate::TetraError::PlatformError) will be returned if the underlying
517
- /// graphics API encounters an error.
517
+ /// graphics API encounters an error.
518
518
pub fn rectangle ( ctx : & mut Context , style : ShapeStyle , rectangle : Rectangle ) -> Result < Mesh > {
519
519
GeometryBuilder :: new ( )
520
520
. rectangle ( style, rectangle) ?
@@ -529,9 +529,9 @@ impl Mesh {
529
529
/// # Errors
530
530
///
531
531
/// * [`TetraError::TessellationError`](crate::TetraError::TessellationError) will be returned if the shape
532
- /// could not be turned into vertex data.
532
+ /// could not be turned into vertex data.
533
533
/// * [`TetraError::PlatformError`](crate::TetraError::PlatformError) will be returned if the underlying
534
- /// graphics API encounters an error.
534
+ /// graphics API encounters an error.
535
535
pub fn rounded_rectangle (
536
536
ctx : & mut Context ,
537
537
style : ShapeStyle ,
@@ -551,9 +551,9 @@ impl Mesh {
551
551
/// # Errors
552
552
///
553
553
/// * [`TetraError::TessellationError`](crate::TetraError::TessellationError) will be returned if the shape
554
- /// could not be turned into vertex data.
554
+ /// could not be turned into vertex data.
555
555
/// * [`TetraError::PlatformError`](crate::TetraError::PlatformError) will be returned if the underlying
556
- /// graphics API encounters an error.
556
+ /// graphics API encounters an error.
557
557
pub fn circle (
558
558
ctx : & mut Context ,
559
559
style : ShapeStyle ,
@@ -573,9 +573,9 @@ impl Mesh {
573
573
/// # Errors
574
574
///
575
575
/// * [`TetraError::TessellationError`](crate::TetraError::TessellationError) will be returned if the shape
576
- /// could not be turned into vertex data.
576
+ /// could not be turned into vertex data.
577
577
/// * [`TetraError::PlatformError`](crate::TetraError::PlatformError) will be returned if the underlying
578
- /// graphics API encounters an error.
578
+ /// graphics API encounters an error.
579
579
pub fn ellipse (
580
580
ctx : & mut Context ,
581
581
style : ShapeStyle ,
@@ -595,9 +595,9 @@ impl Mesh {
595
595
/// # Errors
596
596
///
597
597
/// * [`TetraError::TessellationError`](crate::TetraError::TessellationError) will be returned if the shape
598
- /// could not be turned into vertex data.
598
+ /// could not be turned into vertex data.
599
599
/// * [`TetraError::PlatformError`](crate::TetraError::PlatformError) will be returned if the underlying
600
- /// graphics API encounters an error.
600
+ /// graphics API encounters an error.
601
601
pub fn polygon ( ctx : & mut Context , style : ShapeStyle , points : & [ Vec2 < f32 > ] ) -> Result < Mesh > {
602
602
GeometryBuilder :: new ( )
603
603
. polygon ( style, points) ?
@@ -612,9 +612,9 @@ impl Mesh {
612
612
/// # Errors
613
613
///
614
614
/// * [`TetraError::TessellationError`](crate::TetraError::TessellationError) will be returned if the shape
615
- /// could not be turned into vertex data.
615
+ /// could not be turned into vertex data.
616
616
/// * [`TetraError::PlatformError`](crate::TetraError::PlatformError) will be returned if the underlying
617
- /// graphics API encounters an error.
617
+ /// graphics API encounters an error.
618
618
pub fn polyline ( ctx : & mut Context , stroke_width : f32 , points : & [ Vec2 < f32 > ] ) -> Result < Mesh > {
619
619
GeometryBuilder :: new ( )
620
620
. polyline ( stroke_width, points) ?
@@ -690,7 +690,7 @@ impl GeometryBuilder {
690
690
/// # Errors
691
691
///
692
692
/// * [`TetraError::TessellationError`](crate::TetraError::TessellationError) will be returned if the shape
693
- /// could not be turned into vertex data.
693
+ /// could not be turned into vertex data.
694
694
pub fn rectangle (
695
695
& mut self ,
696
696
style : ShapeStyle ,
@@ -724,7 +724,7 @@ impl GeometryBuilder {
724
724
/// # Errors
725
725
///
726
726
/// * [`TetraError::TessellationError`](crate::TetraError::TessellationError) will be returned if the shape
727
- /// could not be turned into vertex data.
727
+ /// could not be turned into vertex data.
728
728
pub fn rounded_rectangle (
729
729
& mut self ,
730
730
style : ShapeStyle ,
@@ -759,7 +759,7 @@ impl GeometryBuilder {
759
759
/// # Errors
760
760
///
761
761
/// * [`TetraError::TessellationError`](crate::TetraError::TessellationError) will be returned if the shape
762
- /// could not be turned into vertex data.
762
+ /// could not be turned into vertex data.
763
763
pub fn circle (
764
764
& mut self ,
765
765
style : ShapeStyle ,
@@ -806,7 +806,7 @@ impl GeometryBuilder {
806
806
/// # Errors
807
807
///
808
808
/// * [`TetraError::TessellationError`](crate::TetraError::TessellationError) will be returned if the shape
809
- /// could not be turned into vertex data.
809
+ /// could not be turned into vertex data.
810
810
pub fn ellipse (
811
811
& mut self ,
812
812
style : ShapeStyle ,
@@ -857,7 +857,7 @@ impl GeometryBuilder {
857
857
/// # Errors
858
858
///
859
859
/// * [`TetraError::TessellationError`](crate::TetraError::TessellationError) will be returned if the shape
860
- /// could not be turned into vertex data.
860
+ /// could not be turned into vertex data.
861
861
pub fn polygon (
862
862
& mut self ,
863
863
style : ShapeStyle ,
@@ -903,7 +903,7 @@ impl GeometryBuilder {
903
903
/// # Errors
904
904
///
905
905
/// * [`TetraError::TessellationError`](crate::TetraError::TessellationError) will be returned if the shape
906
- /// could not be turned into vertex data.
906
+ /// could not be turned into vertex data.
907
907
pub fn polyline (
908
908
& mut self ,
909
909
stroke_width : f32 ,
@@ -971,7 +971,7 @@ impl GeometryBuilder {
971
971
/// # Errors
972
972
///
973
973
/// * [`TetraError::PlatformError`](crate::TetraError::PlatformError) will be returned if the underlying
974
- /// graphics API encounters an error.
974
+ /// graphics API encounters an error.
975
975
pub fn build_buffers ( & self , ctx : & mut Context ) -> Result < ( VertexBuffer , IndexBuffer ) > {
976
976
Ok ( (
977
977
VertexBuffer :: new ( ctx, & self . data . vertices ) ?,
@@ -986,7 +986,7 @@ impl GeometryBuilder {
986
986
/// # Errors
987
987
///
988
988
/// * [`TetraError::PlatformError`](crate::TetraError::PlatformError) will be returned if the underlying
989
- /// graphics API encounters an error.
989
+ /// graphics API encounters an error.
990
990
pub fn build_mesh ( & self , ctx : & mut Context ) -> Result < Mesh > {
991
991
let ( vertex_buffer, index_buffer) = self . build_buffers ( ctx) ?;
992
992
0 commit comments