[−][src]Struct cat_engine::graphics::Graphics2D
Графическая основа. Graphic base.
Области. Ranges.
Вы можете выбрать область в буфере вершин и сохранить туда вершины объектов. Это помогает ускорить процесс отрисовки неменяющихся объектов.
You can choose a range of the vertex buffer and save there vertexes of objects. It speeds up drawing unchanging objects.
Implementations
impl Graphics2D
[src]
pub fn bind_image(
&mut self,
range: Range<usize>,
image_base: ImageBase
) -> Option<usize>
[src]
&mut self,
range: Range<usize>,
image_base: ImageBase
) -> Option<usize>
Сохраняет координаты картинки в выбранной области в буфере. Возращает номер области, если она не выходит за границы буфера.
Только для невращающихся изображений.
Для вывода изображения из этой области используется функция 'draw_range_image'.
Saves vertexes of the image to the given range of the vertex buffer. Returns the index of the range.
Only for non-rotating images.
Use 'draw_range_image' for drawing.
pub fn bind_rotating_image(
&mut self,
range: Range<usize>,
image_base: ImageBase
) -> Option<usize>
[src]
&mut self,
range: Range<usize>,
image_base: ImageBase
) -> Option<usize>
Сохраняет координаты картинки в выбранной области в буфере. Возращает номер области, если она не выходит за границы буфера.
Только для вращающихся изображений.
Для вывода изображения из этой области используется функция 'draw_rotate_range_image'.
Saves vertexes of the image to the given range of the vertex buffer. Returns the index of the range.
Only for rotating images.
Use 'draw_rotate_range_image' for drawing.
pub fn bind_simple<'a, O: SimpleObject<'a>>(
&mut self,
range: Range<usize>,
object: &O
) -> Option<usize>
[src]
&mut self,
range: Range<usize>,
object: &O
) -> Option<usize>
Сохраняет координаты простого объекта в выбранной области в буфере. Возращает номер области, если она не выходит за границы буфера.
Для вывода объекта из этой области используется функция 'draw_range_simple'.
Saves vertexes of the simple object to the given range of the vertex buffer. Returns the index of the range.
Use 'draw_range_simple' for drawing.
pub fn rewrite_range_image(
&mut self,
range: usize,
image_base: ImageBase
) -> Option<()>
[src]
&mut self,
range: usize,
image_base: ImageBase
) -> Option<()>
Обновляет значения области массива для текстур.
Только для невращающихся изображений.
Rewrites the range with new ImageBase.
Only for non-rotating images.
pub fn rewrite_range_rotating_image(
&mut self,
range: usize,
image_base: ImageBase
) -> Option<()>
[src]
&mut self,
range: usize,
image_base: ImageBase
) -> Option<()>
Обновляет значения области массива для текстур.
Только для вращающихся изображений.
Rewrites the range with new ImageBase.
Only for rotating images.
pub fn rewrite_range_simple<'a, O: SimpleObject<'a>>(
&mut self,
range: usize,
object: &O
) -> Option<()>
[src]
&mut self,
range: usize,
object: &O
) -> Option<()>
Обновляет значения области массива простых объектов.
Rewrites the range with new object.
pub fn pop_texture(&mut self) -> Option<Range<usize>>
[src]
Удаляет и возращает последюю область из массива областей текстур.
Removes the last range from the range buffer of textures.
pub fn pop_simple(&mut self) -> Option<Range<usize>>
[src]
Удаляет и возращает последюю область из массива областей простых объектов.
Removes the last range from the range buffer of simple objects.
pub fn unbind_texture(&mut self, index: usize)
[src]
Удаляет область из массива областей текстур.
Removes the range from the range buffer of textures.
pub fn unbind_simple(&mut self, index: usize)
[src]
Удаляет область из массива областей простых объектов.
Removes the range from the range buffer of simple objects.
Auto Trait Implementations
impl !RefUnwindSafe for Graphics2D
impl !Send for Graphics2D
impl !Sync for Graphics2D
impl Unpin for Graphics2D
impl !UnwindSafe for Graphics2D
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,