YSTest  PreAlpha_b400_20130424
The YSLib Test Project
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
Video.h 文件参考

平台相关的视频输出接口。 更多...

#include "ycommon.h"
Video.h 的引用(Include)关系图:
此图展示该文件直接或间接的被哪些文件引用了:

浏览源代码.

class  platform::Color
 颜色。 更多...
 

命名空间

namespace  platform
 默认平台命名空间。
 
namespace  platform::ColorSpace
 系统默认颜色空间。
 
namespace  platform::Consoles
 控制台接口。
 
namespace  platform_ex
 

宏定义

#define YCL_PIXEL_FORMAT_AXYZ1555
 标识 AXYZ1555 像素格式。
 
#define DefColorH_(hex, name)
 
#define HexAdd0x(hex)   0x##hex
 
#define DefColorH(hex_, name)   DefColorH_(HexAdd0x(hex_), name)
 

类型定义

typedef std::int16_t platform::SPos
 屏幕坐标度量。
 
typedef std::uint16_t platform::SDst
 屏幕坐标距离。
 
typedef std::uint16_t platform::PixelType
 LibNDS 兼容像素。
 
typedef PixelType * platform::BitmapPtr
 
typedef const PixelType * platform::ConstBitmapPtr
 

枚举

enum  platform::ColorSpace::ColorSet : PixelType {
  platform::ColorSpace::Aqua = (FetchPixel((( 0x00FFFF ) >> 16) & 0xFF, (( 0x00FFFF ) >> 8) & 0xFF, ( 0x00FFFF ) & 0xFF) | 1 << 15), platform::ColorSpace::Black = (FetchPixel((( 0x000000 ) >> 16) & 0xFF, (( 0x000000 ) >> 8) & 0xFF, ( 0x000000 ) & 0xFF) | 1 << 15), platform::ColorSpace::Blue = (FetchPixel((( 0x0000FF ) >> 16) & 0xFF, (( 0x0000FF ) >> 8) & 0xFF, ( 0x0000FF ) & 0xFF) | 1 << 15), platform::ColorSpace::Fuchsia = (FetchPixel((( 0xFF00FF ) >> 16) & 0xFF, (( 0xFF00FF ) >> 8) & 0xFF, ( 0xFF00FF ) & 0xFF) | 1 << 15),
  platform::ColorSpace::Gray = (FetchPixel((( 0x808080 ) >> 16) & 0xFF, (( 0x808080 ) >> 8) & 0xFF, ( 0x808080 ) & 0xFF) | 1 << 15), platform::ColorSpace::Green = (FetchPixel((( 0x008000 ) >> 16) & 0xFF, (( 0x008000 ) >> 8) & 0xFF, ( 0x008000 ) & 0xFF) | 1 << 15), platform::ColorSpace::Lime = (FetchPixel((( 0x00FF00 ) >> 16) & 0xFF, (( 0x00FF00 ) >> 8) & 0xFF, ( 0x00FF00 ) & 0xFF) | 1 << 15), platform::ColorSpace::Maroon = (FetchPixel((( 0x800000 ) >> 16) & 0xFF, (( 0x800000 ) >> 8) & 0xFF, ( 0x800000 ) & 0xFF) | 1 << 15),
  platform::ColorSpace::Navy = (FetchPixel((( 0x000080 ) >> 16) & 0xFF, (( 0x000080 ) >> 8) & 0xFF, ( 0x000080 ) & 0xFF) | 1 << 15), platform::ColorSpace::Olive = (FetchPixel((( 0x808000 ) >> 16) & 0xFF, (( 0x808000 ) >> 8) & 0xFF, ( 0x808000 ) & 0xFF) | 1 << 15), platform::ColorSpace::Purple = (FetchPixel((( 0x800080 ) >> 16) & 0xFF, (( 0x800080 ) >> 8) & 0xFF, ( 0x800080 ) & 0xFF) | 1 << 15), platform::ColorSpace::Red = (FetchPixel((( 0xFF0000 ) >> 16) & 0xFF, (( 0xFF0000 ) >> 8) & 0xFF, ( 0xFF0000 ) & 0xFF) | 1 << 15),
  platform::ColorSpace::Silver = (FetchPixel((( 0xC0C0C0 ) >> 16) & 0xFF, (( 0xC0C0C0 ) >> 8) & 0xFF, ( 0xC0C0C0 ) & 0xFF) | 1 << 15), platform::ColorSpace::Teal = (FetchPixel((( 0x008080 ) >> 16) & 0xFF, (( 0x008080 ) >> 8) & 0xFF, ( 0x008080 ) & 0xFF) | 1 << 15), platform::ColorSpace::White = (FetchPixel((( 0xFFFFFF ) >> 16) & 0xFF, (( 0xFFFFFF ) >> 8) & 0xFF, ( 0xFFFFFF ) & 0xFF) | 1 << 15), platform::ColorSpace::Yellow = (FetchPixel((( 0xFFFF00 ) >> 16) & 0xFF, (( 0xFFFF00 ) >> 8) & 0xFF, ( 0xFFFF00 ) & 0xFF) | 1 << 15)
}
 默认颜色集。 更多...
 
enum  platform::Consoles::Color {
  platform::Consoles::Black = 0, platform::Consoles::DarkBlue, platform::Consoles::DarkGreen, platform::Consoles::DarkCyan,
  platform::Consoles::DarkRed, platform::Consoles::DarkMagenta, platform::Consoles::DarkYellow, platform::Consoles::Gray,
  platform::Consoles::DarkGray, platform::Consoles::Blue, platform::Consoles::Green, platform::Consoles::Cyan,
  platform::Consoles::Red, platform::Consoles::Magenta, platform::Consoles::Yellow, platform::Consoles::White
}
 控制台颜色枚举。 更多...
 

函数

yconstfn std::uint8_t platform::FetchAlpha (PixelType px)
 取像素 Alpha 值。
 
yconstfn PixelType platform::FetchOpaque (PixelType px)
 取不透明像素。
 
yconstfn PixelType platform::FetchPixel (std::uint8_t r, std::uint8_t g, std::uint8_t b)
 
void platform::YConsoleInit (std::uint8_t dspIndex, Color fc=ColorSpace::White, Color bc=ColorSpace::Black)
 启动控制台。
 
bool platform::InitVideo ()
 初始化视频输出。
 
void platform_ex::ResetVideo ()
 复位屏幕显示模式。
 
platform::BitmapPtr platform_ex::InitScrUp (int &)
 默认上屏初始化函数。
 
platform::BitmapPtr platform_ex::InitScrDown (int &)
 默认下屏初始化函数。
 
void platform_ex::ScreenSynchronize (platform::PixelType *, const platform::PixelType *) ynothrow
 快速刷新缓存映像到显示屏缓冲区。
 

变量

yconstexpr platform::Color platform::Consoles::ConsoleColors []
 控制台颜色。
 

详细描述

平台相关的视频输出接口。

版本
r555
作者
FrankHB frank.nosp@m.hb19.nosp@m.89@gm.nosp@m.ail..nosp@m.com
自从
build 312
创建时间:
2011-05-26 19:41:08 +0800
修改时间:
2013-02-02 14:00 +0800
文本编码:
UTF-8
模块名称:
YCLib::Video

在文件 Video.h 中定义.

宏定义说明

#define DefColorH (   hex_,
  name 
)    DefColorH_(HexAdd0x(hex_), name)

在文件 Video.h152 行定义.

#define DefColorH_ (   hex,
  name 
)
值:
name = \
(FetchPixel(((hex) >> 16) & 0xFF, ((hex) >> 8) & 0xFF, (hex) & 0xFF) \
| 1 << 15)

在文件 Video.h81 行定义.

#define HexAdd0x (   hex)    0x##hex

在文件 Video.h151 行定义.

#define YCL_PIXEL_FORMAT_AXYZ1555

标识 AXYZ1555 像素格式。

自从
build 297

在文件 Video.h44 行定义.