ETL
0.04.19
|
#include <_surface.h>
Public Types | |
typedef T | value_type |
typedef AT | accumulator_type |
typedef value_type * | pointer |
typedef accumulator_type * | accumulator_pointer |
typedef const value_type * | const_pointer |
typedef const accumulator_type * | const_accumulator_pointer |
typedef value_type & | reference |
typedef generic_pen < value_type, accumulator_type > | pen |
typedef generic_pen< const value_type, accumulator_type > | const_pen |
typedef VP | value_prep_type |
typedef alpha_pen< const_pen > | const_alpha_pen |
typedef alpha_pen< pen > | non_const_alpha_pen |
typedef pen::difference_type | size_type |
typedef pen::difference_type | difference_type |
typedef pen::iterator_x | iterator_x |
typedef pen::iterator_y | iterator_y |
typedef pen::const_iterator_x | const_iterator_x |
typedef pen::const_iterator_y | const_iterator_y |
Public Member Functions | |
surface () | |
surface (value_type *data, int w, int h, bool deletable=false) | |
surface (value_type *data, int w, int h, typename difference_type::value_type pitch, bool deletable=false) | |
surface (const typename size_type::value_type &w, const typename size_type::value_type &h) | |
surface (const size_type &s) | |
template<typename _pen > | |
surface (const _pen &_begin, const _pen &_end) | |
surface (const surface &s) | |
~surface () | |
size_type | size () const |
size_type::value_type | get_pitch () const |
size_type::value_type | get_w () const |
size_type::value_type | get_h () const |
const surface & | mirror (const surface &rhs) |
const surface & | operator= (const surface &rhs) |
void | copy (const surface &rhs) |
void | set_wh (typename size_type::value_type w, typename size_type::value_type h, const typename size_type::value_type &pitch=0) |
void | set_wh (typename size_type::value_type w, typename size_type::value_type h, unsigned char *newdata, const typename size_type::value_type &pitch) |
void | fill (value_type v, int x, int y, int w, int h) |
template<class _pen > | |
void | fill (value_type v, _pen &PEN, int w, int h) |
void | fill (value_type v) |
template<class _pen > | |
void | blit_to (_pen &pen) |
template<class _pen > | |
void | blit_to (_pen &DEST_PEN, int x, int y, int w, int h) |
void | clear () |
iterator_x | operator[] (const int &y) |
const_iterator_x | operator[] (const int &y) const |
void | flip_v () |
bool | is_valid () const |
operator bool () const | |
pen | begin () |
pen | get_pen (int x, int y) |
pen | end () |
const_pen | begin () const |
const_pen | get_pen (int x, int y) const |
const_pen | end () const |
value_type | linear_sample (const float x, const float y) const |
Linear sample. | |
value_type | linear_sample_cooked (const float x, const float y) const |
Linear sample for already "cooked" surfaces. | |
value_type | cosine_sample (const float x, const float y) const |
Cosine sample. | |
value_type | cosine_sample_cooked (const float x, const float y) const |
Cosine sample for already "cooked" surfaces. | |
value_type | cubic_sample (float x, float y) const |
Cubic sample. | |
value_type | cubic_sample_cooked (float x, float y) const |
Cubic sample for already "cooked" surfaces. | |
value_type | sample_rect (float x0, float y0, float x1, float y1) const |
Rectangle sample. | |
value_type | sample_rect_cooked (float x0, float y0, float x1, float y1) const |
Rectangle sample for already "cooked" surfaces. | |
value_type | sample_rect_clip (float x0, float y0, float x1, float y1) const |
Rectangle sample clipped. | |
value_type | sample_rect_clip_cooked (float x0, float y0, float x1, float y1) const |
Rectangle sample clipped for already "cooked" surfaces. |
Private Member Functions | |
void | swap (const surface &x) |
Private Attributes | |
value_type * | data_ |
value_type * | zero_pos_ |
difference_type::value_type | pitch_ |
int | w_ |
int | h_ |
bool | deletable_ |
value_prep_type | cooker_ |
Definition at line 56 of file _surface.h.
typedef T surface< T, AT, VP >::value_type |
Definition at line 59 of file _surface.h.
typedef AT surface< T, AT, VP >::accumulator_type |
Definition at line 60 of file _surface.h.
typedef value_type* surface< T, AT, VP >::pointer |
Definition at line 61 of file _surface.h.
typedef accumulator_type* surface< T, AT, VP >::accumulator_pointer |
Definition at line 62 of file _surface.h.
typedef const value_type* surface< T, AT, VP >::const_pointer |
Definition at line 63 of file _surface.h.
typedef const accumulator_type* surface< T, AT, VP >::const_accumulator_pointer |
Definition at line 64 of file _surface.h.
typedef value_type& surface< T, AT, VP >::reference |
Definition at line 65 of file _surface.h.
typedef generic_pen<value_type,accumulator_type> surface< T, AT, VP >::pen |
Definition at line 66 of file _surface.h.
typedef generic_pen<const value_type,accumulator_type> surface< T, AT, VP >::const_pen |
Definition at line 67 of file _surface.h.
typedef VP surface< T, AT, VP >::value_prep_type |
Definition at line 68 of file _surface.h.
typedef alpha_pen<const_pen> surface< T, AT, VP >::const_alpha_pen |
Definition at line 70 of file _surface.h.
typedef alpha_pen<pen> surface< T, AT, VP >::non_const_alpha_pen |
Definition at line 71 of file _surface.h.
typedef pen::difference_type surface< T, AT, VP >::size_type |
Definition at line 73 of file _surface.h.
typedef pen::difference_type surface< T, AT, VP >::difference_type |
Definition at line 74 of file _surface.h.
typedef pen::iterator_x surface< T, AT, VP >::iterator_x |
Definition at line 76 of file _surface.h.
typedef pen::iterator_y surface< T, AT, VP >::iterator_y |
Definition at line 77 of file _surface.h.
typedef pen::const_iterator_x surface< T, AT, VP >::const_iterator_x |
Definition at line 78 of file _surface.h.
typedef pen::const_iterator_y surface< T, AT, VP >::const_iterator_y |
Definition at line 79 of file _surface.h.
|
inline |
Definition at line 101 of file _surface.h.
|
inline |
Definition at line 108 of file _surface.h.
|
inline |
Definition at line 115 of file _surface.h.
|
inline |
Definition at line 122 of file _surface.h.
|
inline |
Definition at line 129 of file _surface.h.
|
inline |
Definition at line 137 of file _surface.h.
References surface< T, AT, VP >::data_, surface< T, AT, VP >::deletable_, surface< T, AT, VP >::h_, surface< T, AT, VP >::pitch_, surface< T, AT, VP >::size(), surface< T, AT, VP >::w_, and surface< T, AT, VP >::zero_pos_.
|
inline |
Definition at line 155 of file _surface.h.
References abs(), surface< T, AT, VP >::data_, surface< T, AT, VP >::h_, and surface< T, AT, VP >::pitch_.
|
inline |
Definition at line 172 of file _surface.h.
References surface< T, AT, VP >::data_, and surface< T, AT, VP >::deletable_.
|
inlineprivate |
Definition at line 90 of file _surface.h.
References surface< T, AT, VP >::data_, surface< T, AT, VP >::deletable_, surface< T, AT, VP >::h_, surface< T, AT, VP >::pitch_, surface< T, AT, VP >::w_, and surface< T, AT, VP >::zero_pos_.
Referenced by surface< T, AT, VP >::sample_rect(), surface< T, AT, VP >::sample_rect_clip(), surface< T, AT, VP >::sample_rect_clip_cooked(), and surface< T, AT, VP >::sample_rect_cooked().
|
inline |
Definition at line 179 of file _surface.h.
References surface< T, AT, VP >::h_, and surface< T, AT, VP >::w_.
Referenced by surface< T, AT, VP >::surface().
|
inline |
Definition at line 182 of file _surface.h.
References surface< T, AT, VP >::pitch_.
|
inline |
Definition at line 183 of file _surface.h.
References surface< T, AT, VP >::w_.
Referenced by surface< T, AT, VP >::blit_to(), surface< T, AT, VP >::sample_rect_clip(), and surface< T, AT, VP >::sample_rect_clip_cooked().
|
inline |
Definition at line 184 of file _surface.h.
References surface< T, AT, VP >::h_.
Referenced by surface< T, AT, VP >::blit_to(), surface< T, AT, VP >::sample_rect_clip(), and surface< T, AT, VP >::sample_rect_clip_cooked().
|
inline |
Definition at line 186 of file _surface.h.
References surface< T, AT, VP >::data_, surface< T, AT, VP >::deletable_, surface< T, AT, VP >::h_, surface< T, AT, VP >::pitch_, surface< T, AT, VP >::w_, and surface< T, AT, VP >::zero_pos_.
|
inline |
Definition at line 200 of file _surface.h.
References surface< T, AT, VP >::data_, surface< T, AT, VP >::deletable_, surface< T, AT, VP >::h_, surface< T, AT, VP >::pitch_, surface< T, AT, VP >::set_wh(), surface< T, AT, VP >::w_, and surface< T, AT, VP >::zero_pos_.
|
inline |
Definition at line 213 of file _surface.h.
References surface< T, AT, VP >::data_, surface< T, AT, VP >::h_, surface< T, AT, VP >::pitch_, and surface< T, AT, VP >::w_.
|
inline |
Definition at line 221 of file _surface.h.
References surface< T, AT, VP >::data_, surface< T, AT, VP >::deletable_, surface< T, AT, VP >::h_, surface< T, AT, VP >::pitch_, surface< T, AT, VP >::w_, and surface< T, AT, VP >::zero_pos_.
Referenced by surface< T, AT, VP >::operator=().
|
inline |
Definition at line 242 of file _surface.h.
References surface< T, AT, VP >::data_, surface< T, AT, VP >::deletable_, surface< T, AT, VP >::h_, surface< T, AT, VP >::pitch_, surface< T, AT, VP >::w_, and surface< T, AT, VP >::zero_pos_.
|
inline |
Definition at line 256 of file _surface.h.
References surface< T, AT, VP >::data_, generic_pen< T, AT >::dec_x(), surface< T, AT, VP >::get_pen(), generic_pen< T, AT >::inc_y(), generic_pen< T, AT >::put_hline(), and generic_pen< T, AT >::set_value().
Referenced by surface< T, AT, VP >::clear().
|
inline |
Definition at line 268 of file _surface.h.
References surface< T, AT, VP >::data_.
|
inline |
Definition at line 279 of file _surface.h.
References surface< T, AT, VP >::begin(), surface< T, AT, VP >::data_, generic_pen< T, AT >::dec_x(), surface< T, AT, VP >::h_, generic_pen< T, AT >::inc_y(), generic_pen< T, AT >::put_hline(), generic_pen< T, AT >::set_value(), and surface< T, AT, VP >::w_.
|
inline |
Definition at line 289 of file _surface.h.
References surface< T, AT, VP >::blit_to(), surface< T, AT, VP >::get_h(), and surface< T, AT, VP >::get_w().
Referenced by surface< T, AT, VP >::blit_to().
|
inline |
Definition at line 293 of file _surface.h.
References generic_pen< T, AT >::dec_x(), surface< T, AT, VP >::get_pen(), generic_pen< T, AT >::get_value(), surface< T, AT, VP >::h_, generic_pen< T, AT >::inc_x(), generic_pen< T, AT >::inc_y(), and surface< T, AT, VP >::w_.
|
inline |
Definition at line 338 of file _surface.h.
References surface< T, AT, VP >::data_, surface< T, AT, VP >::fill(), surface< T, AT, VP >::h_, surface< T, AT, VP >::pitch_, and surface< T, AT, VP >::w_.
|
inline |
Definition at line 348 of file _surface.h.
References surface< T, AT, VP >::data_, surface< T, AT, VP >::pitch_, and surface< T, AT, VP >::zero_pos_.
|
inline |
Definition at line 352 of file _surface.h.
References surface< T, AT, VP >::data_, surface< T, AT, VP >::pitch_, and surface< T, AT, VP >::zero_pos_.
|
inline |
Definition at line 356 of file _surface.h.
References surface< T, AT, VP >::data_, surface< T, AT, VP >::h_, surface< T, AT, VP >::pitch_, and surface< T, AT, VP >::zero_pos_.
|
inline |
Definition at line 365 of file _surface.h.
References surface< T, AT, VP >::data_, surface< T, AT, VP >::h_, surface< T, AT, VP >::pitch_, surface< T, AT, VP >::w_, and surface< T, AT, VP >::zero_pos_.
Referenced by surface< T, AT, VP >::operator bool().
|
inline |
Definition at line 375 of file _surface.h.
References surface< T, AT, VP >::is_valid().
|
inline |
Definition at line 377 of file _surface.h.
References surface< T, AT, VP >::data_, surface< T, AT, VP >::h_, surface< T, AT, VP >::pitch_, and surface< T, AT, VP >::w_.
Referenced by surface< T, AT, VP >::fill(), and surface< T, AT, VP >::get_pen().
|
inline |
Definition at line 378 of file _surface.h.
References surface< T, AT, VP >::begin(), surface< T, AT, VP >::data_, and generic_pen< T, AT >::move().
Referenced by surface< T, AT, VP >::blit_to(), surface< T, AT, VP >::end(), surface< T, AT, VP >::fill(), surface< T, AT, VP >::sample_rect(), surface< T, AT, VP >::sample_rect_clip(), surface< T, AT, VP >::sample_rect_clip_cooked(), and surface< T, AT, VP >::sample_rect_cooked().
|
inline |
Definition at line 379 of file _surface.h.
References surface< T, AT, VP >::data_, surface< T, AT, VP >::get_pen(), surface< T, AT, VP >::h_, and surface< T, AT, VP >::w_.
|
inline |
Definition at line 381 of file _surface.h.
References surface< T, AT, VP >::data_, surface< T, AT, VP >::h_, surface< T, AT, VP >::pitch_, and surface< T, AT, VP >::w_.
|
inline |
Definition at line 382 of file _surface.h.
References surface< T, AT, VP >::begin(), surface< T, AT, VP >::data_, and generic_pen< T, AT >::move().
|
inline |
Definition at line 383 of file _surface.h.
References surface< T, AT, VP >::data_, surface< T, AT, VP >::get_pen(), surface< T, AT, VP >::h_, and surface< T, AT, VP >::w_.
|
inline |
Linear sample.
Definition at line 386 of file _surface.h.
References surface< T, AT, VP >::cooker_, f, floor_to_int(), surface< T, AT, VP >::h_, and surface< T, AT, VP >::w_.
|
inline |
Linear sample for already "cooked" surfaces.
Definition at line 412 of file _surface.h.
References f, floor_to_int(), h, surface< T, AT, VP >::h_, and surface< T, AT, VP >::w_.
|
inline |
Cosine sample.
Definition at line 441 of file _surface.h.
References surface< T, AT, VP >::cooker_, cos(), f, floor_to_int(), surface< T, AT, VP >::h_, and surface< T, AT, VP >::w_.
|
inline |
Cosine sample for already "cooked" surfaces.
Definition at line 471 of file _surface.h.
References cos(), f, floor_to_int(), h, surface< T, AT, VP >::h_, and surface< T, AT, VP >::w_.
|
inline |
Cubic sample.
Definition at line 504 of file _surface.h.
References surface< T, AT, VP >::cooker_, f, floor(), floor_to_int(), surface< T, AT, VP >::h_, and surface< T, AT, VP >::w_.
|
inline |
Cubic sample for already "cooked" surfaces.
Definition at line 587 of file _surface.h.
|
inline |
Rectangle sample.
Definition at line 633 of file _surface.h.
References surface< T, AT, VP >::cooker_, generic_pen< T, AT >::dec_x(), floor(), surface< T, AT, VP >::get_pen(), generic_pen< T, AT >::get_value(), generic_pen< T, AT >::inc_x(), generic_pen< T, AT >::inc_y(), and surface< T, AT, VP >::swap().
|
inline |
Rectangle sample for already "cooked" surfaces.
Definition at line 700 of file _surface.h.
References generic_pen< T, AT >::dec_x(), floor(), surface< T, AT, VP >::get_pen(), generic_pen< T, AT >::get_value(), generic_pen< T, AT >::inc_x(), generic_pen< T, AT >::inc_y(), and surface< T, AT, VP >::swap().
|
inline |
Rectangle sample clipped.
Definition at line 767 of file _surface.h.
References surface< T, AT, VP >::cooker_, generic_pen< T, AT >::dec_x(), floor(), surface< T, AT, VP >::get_h(), surface< T, AT, VP >::get_pen(), generic_pen< T, AT >::get_value(), surface< T, AT, VP >::get_w(), generic_pen< T, AT >::inc_x(), generic_pen< T, AT >::inc_y(), and surface< T, AT, VP >::swap().
|
inline |
Rectangle sample clipped for already "cooked" surfaces.
Definition at line 853 of file _surface.h.
References generic_pen< T, AT >::dec_x(), floor(), surface< T, AT, VP >::get_h(), surface< T, AT, VP >::get_pen(), generic_pen< T, AT >::get_value(), surface< T, AT, VP >::get_w(), generic_pen< T, AT >::inc_x(), generic_pen< T, AT >::inc_y(), and surface< T, AT, VP >::swap().
|
private |
Definition at line 82 of file _surface.h.
Referenced by surface< T, AT, VP >::begin(), surface< T, AT, VP >::clear(), surface< T, AT, VP >::copy(), surface< T, AT, VP >::end(), surface< T, AT, VP >::fill(), surface< T, AT, VP >::flip_v(), surface< T, AT, VP >::get_pen(), surface< T, AT, VP >::is_valid(), surface< T, AT, VP >::mirror(), surface< T, AT, VP >::operator=(), surface< T, AT, VP >::operator[](), surface< T, AT, VP >::set_wh(), surface< T, AT, VP >::surface(), surface< T, AT, VP >::swap(), and surface< T, AT, VP >::~surface().
|
private |
Definition at line 83 of file _surface.h.
Referenced by surface< T, AT, VP >::flip_v(), surface< T, AT, VP >::is_valid(), surface< T, AT, VP >::mirror(), surface< T, AT, VP >::operator=(), surface< T, AT, VP >::operator[](), surface< T, AT, VP >::set_wh(), surface< T, AT, VP >::surface(), and surface< T, AT, VP >::swap().
|
private |
Definition at line 84 of file _surface.h.
Referenced by surface< T, AT, VP >::begin(), surface< T, AT, VP >::clear(), surface< T, AT, VP >::copy(), surface< T, AT, VP >::flip_v(), surface< T, AT, VP >::get_pitch(), surface< T, AT, VP >::is_valid(), surface< T, AT, VP >::mirror(), surface< T, AT, VP >::operator=(), surface< T, AT, VP >::operator[](), surface< T, AT, VP >::set_wh(), surface< T, AT, VP >::surface(), and surface< T, AT, VP >::swap().
|
private |
Definition at line 85 of file _surface.h.
Referenced by surface< T, AT, VP >::begin(), surface< T, AT, VP >::blit_to(), surface< T, AT, VP >::clear(), surface< T, AT, VP >::copy(), surface< T, AT, VP >::cosine_sample(), surface< T, AT, VP >::cosine_sample_cooked(), surface< T, AT, VP >::cubic_sample(), surface< T, AT, VP >::end(), surface< T, AT, VP >::fill(), surface< T, AT, VP >::get_w(), surface< T, AT, VP >::is_valid(), surface< T, AT, VP >::linear_sample(), surface< T, AT, VP >::linear_sample_cooked(), surface< T, AT, VP >::mirror(), surface< T, AT, VP >::operator=(), surface< T, AT, VP >::set_wh(), surface< T, AT, VP >::size(), surface< T, AT, VP >::surface(), and surface< T, AT, VP >::swap().
|
private |
Definition at line 85 of file _surface.h.
Referenced by surface< T, AT, VP >::begin(), surface< T, AT, VP >::blit_to(), surface< T, AT, VP >::clear(), surface< T, AT, VP >::copy(), surface< T, AT, VP >::cosine_sample(), surface< T, AT, VP >::cosine_sample_cooked(), surface< T, AT, VP >::cubic_sample(), surface< T, AT, VP >::end(), surface< T, AT, VP >::fill(), surface< T, AT, VP >::flip_v(), surface< T, AT, VP >::get_h(), surface< T, AT, VP >::is_valid(), surface< T, AT, VP >::linear_sample(), surface< T, AT, VP >::linear_sample_cooked(), surface< T, AT, VP >::mirror(), surface< T, AT, VP >::operator=(), surface< T, AT, VP >::set_wh(), surface< T, AT, VP >::size(), surface< T, AT, VP >::surface(), and surface< T, AT, VP >::swap().
|
private |
Definition at line 86 of file _surface.h.
Referenced by surface< T, AT, VP >::mirror(), surface< T, AT, VP >::operator=(), surface< T, AT, VP >::set_wh(), surface< T, AT, VP >::surface(), surface< T, AT, VP >::swap(), and surface< T, AT, VP >::~surface().
|
private |
Definition at line 88 of file _surface.h.
Referenced by surface< T, AT, VP >::cosine_sample(), surface< T, AT, VP >::cubic_sample(), surface< T, AT, VP >::linear_sample(), surface< T, AT, VP >::sample_rect(), and surface< T, AT, VP >::sample_rect_clip().