<li><a href="#CATEGORY">CATEGORY</a></li>
<li><a href="#SYNOPSIS">SYNOPSIS</a></li>
<li><a href="#DESCRIPTION">DESCRIPTION</a></li>
+<li><a href="#CONSTANTS">CONSTANTS</a></li>
<li><a href="#METHODS">METHODS</a>
<ul><li><a href="#new_flags_width_height_depth_Rmask_G">new ( flags, width, height, depth, Rmask, Gmask, Bmask, Amask )</a></li>
<li><a href="#new_from_surface_width_height_depth_">new_from ( surface, width, height, depth, Rmask, Gmask, Bmask, Amask )</a>
</div>
<h1 id="SYNOPSIS">SYNOPSIS</h1><p><a href="#TOP" class="toplink">Top</a></p>
<div id="SYNOPSIS_CONTENT">
-<p>The main surface (display) is provided by <a href="/SDL-Video::set_video_mode.html">SDL::Video::set_video_mode</a>.
+<p>The main surface (display) is provided by <a href="/SDL-Video.html#set_video_mode">SDL::Video::set_video_mode</a>.
use SDL; #provides flags & constants
use SDL::Video; #provides access to set_video_mode
use SDL::Surface; #provides access to SDL_Surface struct internals</p>
<p>An <code>SDL_Surface</code> defines a surfaceangular area of pixels.</p>
</div>
+<h1 id="CONSTANTS">CONSTANTS</h1><p><a href="#TOP" class="toplink">Top</a></p>
+<div id="CONSTANTS_CONTENT">
+<p>The constants are not exported by default. You can export them into your namespace by doing:</p>
+<pre> use SDL::Video ':surface';
+
+</pre>
+<p>or</p>
+<pre> use SDL::Video ':all';
+
+</pre>
+<p>or access them directly:</p>
+<pre> SDL::Video::SDL_SWSURFACE;
+
+</pre>
+<p>Available constants: see <a href="#flags">flags</a></p>
+
+</div>
<h1 id="METHODS">METHODS</h1><p><a href="#TOP" class="toplink">Top</a></p>
<div id="METHODS_CONTENT">
</div>
<h4 id="flags">flags</h4>
<div id="flags_CONTENT">
+<p>Available flags for new() are exported by SDL::Video</p>
<dl>
- <dt>SDL_ANYFORMAT</dt>
- <dd>
- <p>Allow any pixel-format *</p>
- </dd>
<dt>SDL_ASYNCBLIT</dt>
<dd>
<p>Use asynchronous blit if possible</p>
</dd>
- <dt>SDL_DOUBLEBUF</dt>
- <dd>
- <p>Double buffered *</p>
- </dd>
- <dt>SDL_HWACCEL</dt>
- <dd>
- <p>Use hardware acceleration blit</p>
- </dd>
- <dt>SDL_HWPALETTE</dt>
+ <dt>SDL_SWSURFACE</dt>
<dd>
- <p>Have an exclusive palette</p>
+ <p>Stored in the system memory.</p>
</dd>
<dt>SDL_HWSURFACE</dt>
<dd>
<p>Stored in video memory</p>
</dd>
- <dt>SDL_FULLSCREEN</dt>
- <dd>
- <p>Full screen surface *</p>
- </dd>
- <dt>SDL_OPENGL</dt>
- <dd>
- <p>Have an OpenGL context *</p>
- </dd>
- <dt>SDL_OPENGLBLIT</dt>
- <dd>
- <p>Support OpenGL blitting *. NOTE: This option is kept for compatibility only, and is not recommended for new code.</p>
- </dd>
- <dt>SDL_RESIZABLE</dt>
- <dd>
- <p>Resizable surface *</p>
- </dd>
- <dt>SDL_RLEACCEL</dt>
- <dd>
- <p>Accelerated colorkey blitting with RLE</p>
- </dd>
- <dt>SDL_SRCALPHA</dt>
- <dd>
- <p>Use alpha blending blit</p>
- </dd>
- <dt>SDL_SRCCOLORKEY</dt>
- <dd>
- <p>Use colorkey blitting</p>
- </dd>
- <dt>SDL_SWSURFACE</dt>
- <dd>
- <p>Stored in the system memory. SDL_SWSURFACE is not actually a flag (it is defined as 0). A lack of SDL_HWSURFACE implies SDL_SWSURFACE</p>
- </dd>
- <dt>SDL_PREALLOC</dt>
- <dd>
- <p>Use preallocated memory</p>
- </dd>
</dl>
-
-
-
-
</div>
<h2 id="w">w</h2>
<div id="w_CONTENT">
</div>
<h2 id="format">format</h2>
<div id="format_CONTENT">
-<p>The format of the pixels stored in the surface. See <a href="/SDL-PixelFormat.html">SDL::PixelFormat</a></p>
+<p>The format of the pixels stored in the surface. See <a href="SDL-PixelFormat.html">SDL::PixelFormat</a></p>
<pre> my $format = $surface->format;
</pre>
</div>
<h1 id="SEE_ALSO">SEE ALSO</h1><p><a href="#TOP" class="toplink">Top</a></p>
<div id="SEE_ALSO_CONTENT">
-<p><a href="/SDL.html">SDL</a>, <a href="/SDL-PixelFormat.html">SDL::PixelFormat</a>, <a href="/SDL-Video.html">SDL::Video</a>, <a href="/SDL-Rect.html">SDL::Rect</a></p>
+<p><a href="SDL.html">SDL</a>, <a href="SDL-PixelFormat.html">SDL::PixelFormat</a>, <a href="SDL-Video.html">SDL::Video</a>, <a href="SDL-Rect.html">SDL::Rect</a></p>
</div>
</div>
\ No newline at end of file