Mercurial > MadButterfly
comparison src/graph_engine_skia.cpp @ 602:ac2e6468a22a openvg
Replace mbe_image_surface_create_from_png() with mbe_pattern_create_image()
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Fri, 02 Jul 2010 13:42:22 +0800 |
parents | b42d69ab8857 |
children | 39d27911c3ae |
comparison
equal
deleted
inserted
replaced
601:8863d23cea4b | 602:ac2e6468a22a |
---|---|
349 if(colors) delete colors; | 349 if(colors) delete colors; |
350 if(poses) delete poses; | 350 if(poses) delete poses; |
351 return NULL; | 351 return NULL; |
352 } | 352 } |
353 | 353 |
354 mbe_pattern_t * | |
355 mbe_pattern_create_image(mb_img_data_t *img) { | |
356 return NULL; | |
357 } | |
358 | |
354 void mbe_pattern_set_matrix(mbe_pattern_t *ptn, const co_aix matrix[6]) { | 359 void mbe_pattern_set_matrix(mbe_pattern_t *ptn, const co_aix matrix[6]) { |
355 SkMatrix skmatrix; | 360 SkMatrix skmatrix; |
356 | 361 |
357 MB_MATRIX_2_SKMATRIX(skmatrix, matrix); | 362 MB_MATRIX_2_SKMATRIX(skmatrix, matrix); |
358 | 363 |
378 } | 383 } |
379 | 384 |
380 unsigned char *mbe_image_surface_get_data(mbe_surface_t *surface) { | 385 unsigned char *mbe_image_surface_get_data(mbe_surface_t *surface) { |
381 return (unsigned char *)((SkBitmap *)surface)->getPixels(); | 386 return (unsigned char *)((SkBitmap *)surface)->getPixels(); |
382 } | 387 } |
383 | |
384 mbe_surface_t *mbe_image_surface_create_from_png(const char *filename) {} | |
385 | 388 |
386 mbe_surface_t * | 389 mbe_surface_t * |
387 mbe_image_surface_create_for_data(unsigned char *data, | 390 mbe_image_surface_create_for_data(unsigned char *data, |
388 mb_img_fmt_t fmt, | 391 mb_img_fmt_t fmt, |
389 int width, int height, | 392 int width, int height, |