1
edit
No edit summary |
(Updated Skia section (build docs changed so build type for Moz2D unclear)) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 63: | Line 63: | ||
** Draw it, or just part of it (DrawSurface) | ** Draw it, or just part of it (DrawSurface) | ||
** Use it as a mask when drawing a pattern (MaskSurface) | ** Use it as a mask when drawing a pattern (MaskSurface) | ||
** Use it as a pattern | ** Use it as a pattern when filling a rectangle (FillRect after wrapping the SourceSurface in a SourcePattern) | ||
* You can also get a DataSourceSurface from it which ''does'' let you access its data. | * You can also get a DataSourceSurface from it which ''does'' let you access its data. | ||
Line 163: | Line 163: | ||
# On OSX clang++ is required: CXX=clang++ | # On OSX clang++ is required: CXX=clang++ | ||
# Build using one of the following targets: | # Build using one of the following targets: | ||
#* release: <code>make | #* release: <code>make release</code> | ||
#* debug: <code>make | #* debug: <code>make debug</code> | ||
#* check: <code>make | #* check: <code>make check</code> | ||
#* player2d: <code>make | #* player2d: <code>make player2d</code> | ||
When building Player2D beware of the following: | When building Player2D beware of the following: | ||
Line 178: | Line 178: | ||
* Skia: | * Skia: | ||
** | ** Use a non-debug build. For download and build instructions see https://skia.org/user/download | ||
* If you plan on using Player2D, qt4-sdk (http://qt-project.org/downloads) | * If you plan on using Player2D, qt4-sdk (http://qt-project.org/downloads) | ||
Line 185: | Line 184: | ||
# Clone the repository: <code>hg clone http://hg.mozilla.org/users/bschouten_mozilla.com/moz2d</code> | # Clone the repository: <code>hg clone http://hg.mozilla.org/users/bschouten_mozilla.com/moz2d</code> | ||
# <code>make | # <code>make clean release MOZ2D_SKIA=true</code> | ||
# If you didn't checkout skia under the moz2d src directory then set MOZ2D_SKIA to it's relative path | # If you didn't checkout skia under the moz2d src directory then set MOZ2D_SKIA to it's relative path | ||
edit