MGCL V10  V10
MGCL V10
 全て クラス 名前空間 関数 変数 型定義 列挙型 列挙値 フレンド グループ ページ
GLAttrib

名前空間

 anonymous_namespace{Color.h}
 

クラス

class  MGColor
 MGColor defines the OpenGL color (R,G,B,A). [詳解]
 
class  MGDirectionalLight
 MGDirectionalLight is a directional light source that approximates infinite light sources as the sun. [詳解]
 
class  MGGLAttrib
 MGGLAttrib is an abstract class which defines the enum of undefined or disabled. [詳解]
 
class  MGLight
 MGLight is an abstract base class for light sources. [詳解]
 
class  MGLights
 a container class for light sources(MGDirectionalLight, MGPointLight, or MGSpotLight). [詳解]
 
class  MGLineStipple
 MGLineStipple defines line stipple patters. [詳解]
 
class  MGLineWidth
 MGLineWidth defines line width of a curve. [詳解]
 
class  MGMaterial
 MGMaterial defines OpenGL's Material attributes. [詳解]
 
class  MGName
 Defines MGAttribedGel's Name data. [詳解]
 
class  MGPlaneImage
 MGPlaneImage defines square image plane. [詳解]
 
class  MGPointLight
 MGPointLight is a point light source that radiates equally in all directions. [詳解]
 
class  MGRenderAttr
 MGRenderAttr defines the attributes of rendering attributes. [詳解]
 
class  MGSpotLight
 A directional light source. [詳解]
 

列挙型

enum  MGColor::MODE { MGColor::UNDEFINED =MGGLAttrib::UNDEFINED, MGColor::DISABLED =MGGLAttrib::DISABLED, MGColor::ENABLED =1 }
 
enum  MGColor::ColorID {
  MGColor::dummy = 0, MGColor::Black = 1, MGColor::Red = 2, MGColor::Green = 3,
  MGColor::Blue = 4, MGColor::Yellow = 5, MGColor::Magenta = 6, MGColor::Cyan = 7,
  MGColor::White = 8, MGColor::AliceBlue, MGColor::AntiqueWhite, MGColor::Aqua,
  MGColor::Aquamarine, MGColor::Azure, MGColor::Beige, MGColor::Bisque,
  MGColor::BlanchedAlmond, MGColor::BlueViolet, MGColor::Brown, MGColor::BurlyWood,
  MGColor::CadetBlue, MGColor::Chartreuse, MGColor::Chocolate, MGColor::Coral,
  MGColor::CornflowerBlue, MGColor::Cornsilk, MGColor::Crimson, MGColor::DarkBlue,
  MGColor::DarkCyan, MGColor::DarkGoldenrod, MGColor::DarkGray, MGColor::DarkGreen,
  MGColor::DarkKhaki, MGColor::DarkMagenta, MGColor::DarkOliveGreen, MGColor::DarkOrange,
  MGColor::DarkOrchid, MGColor::DarkRed, MGColor::DarkSalmon, MGColor::DarkSeaGreen,
  MGColor::DarkSlateBlue, MGColor::DarkSlateGray, MGColor::DarkTurquoise, MGColor::DarkViolet,
  MGColor::DeepPink, MGColor::DeepSkyBlue, MGColor::DimGray, MGColor::DodgerBlue,
  MGColor::Firebrick, MGColor::FloralWhite, MGColor::ForestGreen, MGColor::Fuchsia,
  MGColor::Gainsboro, MGColor::GhostWhite, MGColor::Gold, MGColor::Goldenrod,
  MGColor::Gray, MGColor::GreenYellow, MGColor::Honeydew, MGColor::HotPink,
  MGColor::IndianRed, MGColor::Indigo, MGColor::Ivory, MGColor::Khaki,
  MGColor::Lavender, MGColor::LavenderBlush, MGColor::LawnGreen, MGColor::LemonChiffon,
  MGColor::LightBlue, MGColor::LightCoral, MGColor::LightCyan, MGColor::LightGoldenrodYellow,
  MGColor::LightGray, MGColor::LightGreen, MGColor::LightPink, MGColor::LightSalmon,
  MGColor::LightSeaGreen, MGColor::LightSkyBlue, MGColor::LightSlateGray, MGColor::LightSteelBlue,
  MGColor::LightYellow, MGColor::Lime, MGColor::LimeGreen, MGColor::Linen,
  MGColor::Maroon, MGColor::MediumAquamarine, MGColor::MediumBlue, MGColor::MediumOrchid,
  MGColor::MediumPurple, MGColor::MediumSeaGreen, MGColor::MediumSlateBlue, MGColor::MediumSpringGreen,
  MGColor::MediumTurquoise, MGColor::MediumVioletRed, MGColor::MidnightBlue, MGColor::MintCream,
  MGColor::MistyRose, MGColor::Moccasin, MGColor::NavajoWhite, MGColor::Navy,
  MGColor::OldLace, MGColor::Olive, MGColor::OliveDrab, MGColor::Orange,
  MGColor::OrangeRed, MGColor::Orchid, MGColor::PaleGoldenrod, MGColor::PaleGreen,
  MGColor::PaleTurquoise, MGColor::PaleVioletRed, MGColor::PapayaWhip, MGColor::PeachPuff,
  MGColor::Peru, MGColor::Pink, MGColor::Plum, MGColor::PowderBlue,
  MGColor::Purple, MGColor::RosyBrown, MGColor::RoyalBlue, MGColor::SaddleBrown,
  MGColor::Salmon, MGColor::SandyBrown, MGColor::SeaGreen, MGColor::SeaShell,
  MGColor::Sienna, MGColor::Silver, MGColor::SkyBlue, MGColor::SlateBlue,
  MGColor::SlateGray, MGColor::Snow, MGColor::SpringGreen, MGColor::SteelBlue,
  MGColor::Tan, MGColor::Teal, MGColor::Thistle, MGColor::Tomato,
  MGColor::Transparent, MGColor::Turquoise, MGColor::Violet, MGColor::Wheat,
  MGColor::WhiteSmoke, MGColor::YellowGreen, MGColor::endID
}
 The color id from 1 to 8(black to white) is the id of IGES. [詳解]
 
enum  MGGLAttrib::FLAG { MGGLAttrib::UNDEFINED =-3, MGGLAttrib::DISABLED =-2 }
 
enum  MGGLAttrib::ATTRIB_MASK {
  MGGLAttrib::CURRENT_BIT = GL_CURRENT_BIT, MGGLAttrib::POINT_BIT = GL_POINT_BIT, MGGLAttrib::LINE_BIT = GL_LINE_BIT, MGGLAttrib::POLYGON_BIT = GL_POLYGON_BIT,
  MGGLAttrib::POLYGON_STIPPLE_BIT = GL_POLYGON_STIPPLE_BIT, MGGLAttrib::PIXEL_MODE_BIT = GL_PIXEL_MODE_BIT, MGGLAttrib::LIGHTING_BIT = GL_LIGHTING_BIT, MGGLAttrib::FOG_BIT = GL_FOG_BIT,
  MGGLAttrib::DEPTH_BUFFER_BIT = GL_DEPTH_BUFFER_BIT, MGGLAttrib::ACCUM_BUFFER_BIT = GL_ACCUM_BUFFER_BIT, MGGLAttrib::STENCIL_BUFFER_BIT = GL_STENCIL_BUFFER_BIT, MGGLAttrib::VIEWPORT_BIT = GL_VIEWPORT_BIT,
  MGGLAttrib::TRANSFORM_BIT = GL_TRANSFORM_BIT, MGGLAttrib::ENABLE_BIT = GL_ENABLE_BIT, MGGLAttrib::COLOR_BUFFER_BIT = GL_COLOR_BUFFER_BIT, MGGLAttrib::HINT_BIT = GL_HINT_BIT,
  MGGLAttrib::EVAL_BIT = GL_EVAL_BIT, MGGLAttrib::LIST_BIT = GL_LIST_BIT, MGGLAttrib::TEXTURE_BIT = GL_TEXTURE_BIT, MGGLAttrib::SCISSOR_BIT = GL_SCISSOR_BIT
}
 
enum  MGLight::LIGHT_MODE { MGLight::UNDEFINED =MGGLAttrib::UNDEFINED, MGLight::OFF =MGGLAttrib::DISABLED, MGLight::ON =1 }
 
enum  MGLineStipple::LineFont {
  MGLineStipple::UndefinedFont =-1, MGLineStipple::Solid =1, MGLineStipple::Dashed =2, MGLineStipple::Phantom =3,
  MGLineStipple::CenterLine =4, MGLineStipple::Dotted =5
}
 
enum  MGLineWidth::MODE { MGLineWidth::UNDEFINED =MGGLAttrib::UNDEFINED, MGLineWidth::DISABLED =MGGLAttrib::DISABLED, MGLineWidth::ENABLED =1 }
 
enum  MGRenderAttr::RENDERSIDE {
  MGRenderAttr::UNDEFINED =MGGLAttrib::UNDEFINED, MGRenderAttr::DISABLED =MGGLAttrib::DISABLED, MGRenderAttr::FRONT =GL_FRONT, MGRenderAttr::BACK =GL_BACK,
  MGRenderAttr::FRONT_AND_BACK =GL_FRONT_AND_BACK
}
 
enum  { MGSpotLight::DIRECTION =1, MGSpotLight::EXPONENT, MGSpotLight::CUT_OFF_ANGLE }
 Field enums. [詳解]
 

関数

COLORREF ARGBtoCOLORREF (DWORD dwColor)
 
DWORD COLORREFtoARGB (COLORREF cl)
 
void set_Amask (unsigned int &mask, MGGLAttrib::ATTRIB_MASK bit)
 Set or reset the bit of mask. [詳解]
 
void reset_Amask (unsigned int &mask, MGGLAttrib::ATTRIB_MASK bit)
 
MGGLAttribMGNullGLAttrib (long TID)
 Construct a null newed MGAttrib from the type id TID. [詳解]
 

詳解

列挙型詳解

anonymous enum

Field enums.

列挙値
DIRECTION 
EXPONENT 
CUT_OFF_ANGLE 
列挙値
CURRENT_BIT 
POINT_BIT 
LINE_BIT 
POLYGON_BIT 
POLYGON_STIPPLE_BIT 
PIXEL_MODE_BIT 
LIGHTING_BIT 
FOG_BIT 
DEPTH_BUFFER_BIT 
ACCUM_BUFFER_BIT 
STENCIL_BUFFER_BIT 
VIEWPORT_BIT 
TRANSFORM_BIT 
ENABLE_BIT 
COLOR_BUFFER_BIT 
HINT_BIT 
EVAL_BIT 
LIST_BIT 
TEXTURE_BIT 
SCISSOR_BIT 

The color id from 1 to 8(black to white) is the id of IGES.

Color enumuration. This is completely compatible to GDI+ color enumuration.

列挙値
dummy 
Black 
Red 
Green 
Blue 
Yellow 
Magenta 
Cyan 
White 
AliceBlue 
AntiqueWhite 
Aqua 
Aquamarine 
Azure 
Beige 
Bisque 
BlanchedAlmond 
BlueViolet 
Brown 
BurlyWood 
CadetBlue 
Chartreuse 
Chocolate 
Coral 
CornflowerBlue 
Cornsilk 
Crimson 
DarkBlue 
DarkCyan 
DarkGoldenrod 
DarkGray 
DarkGreen 
DarkKhaki 
DarkMagenta 
DarkOliveGreen 
DarkOrange 
DarkOrchid 
DarkRed 
DarkSalmon 
DarkSeaGreen 
DarkSlateBlue 
DarkSlateGray 
DarkTurquoise 
DarkViolet 
DeepPink 
DeepSkyBlue 
DimGray 
DodgerBlue 
Firebrick 
FloralWhite 
ForestGreen 
Fuchsia 
Gainsboro 
GhostWhite 
Gold 
Goldenrod 
Gray 
GreenYellow 
Honeydew 
HotPink 
IndianRed 
Indigo 
Ivory 
Khaki 
Lavender 
LavenderBlush 
LawnGreen 
LemonChiffon 
LightBlue 
LightCoral 
LightCyan 
LightGoldenrodYellow 
LightGray 
LightGreen 
LightPink 
LightSalmon 
LightSeaGreen 
LightSkyBlue 
LightSlateGray 
LightSteelBlue 
LightYellow 
Lime 
LimeGreen 
Linen 
Maroon 
MediumAquamarine 
MediumBlue 
MediumOrchid 
MediumPurple 
MediumSeaGreen 
MediumSlateBlue 
MediumSpringGreen 
MediumTurquoise 
MediumVioletRed 
MidnightBlue 
MintCream 
MistyRose 
Moccasin 
NavajoWhite 
Navy 
OldLace 
Olive 
OliveDrab 
Orange 
OrangeRed 
Orchid 
PaleGoldenrod 
PaleGreen 
PaleTurquoise 
PaleVioletRed 
PapayaWhip 
PeachPuff 
Peru 
Pink 
Plum 
PowderBlue 
Purple 
RosyBrown 
RoyalBlue 
SaddleBrown 
Salmon 
SandyBrown 
SeaGreen 
SeaShell 
Sienna 
Silver 
SkyBlue 
SlateBlue 
SlateGray 
Snow 
SpringGreen 
SteelBlue 
Tan 
Teal 
Thistle 
Tomato 
Transparent 
Turquoise 
Violet 
Wheat 
WhiteSmoke 
YellowGreen 
endID 
列挙値
UNDEFINED 
DISABLED 
列挙値
UNDEFINED 
OFF 
ON 

Disabled is used as OFF.

列挙値
UndefinedFont 
Solid 

factor=2, pattern=0xFFFF

Dashed 

facotr=2, pattern=0x3333

Phantom 

facotr=2, pattern=0x5757

CenterLine 

facotr=2, pattern=0x5f5f

Dotted 

facotr=2, pattern=0x1111

列挙値
UNDEFINED 
DISABLED 
ENABLED 
列挙値
UNDEFINED 
DISABLED 
ENABLED 
列挙値
UNDEFINED 
DISABLED 
FRONT 
BACK 

render front side

FRONT_AND_BACK 

render back side

関数詳解

COLORREF ARGBtoCOLORREF ( DWORD  dwColor)
inline
DWORD COLORREFtoARGB ( COLORREF  cl)
inline
MGGLAttrib* MGNullGLAttrib ( long  TID)

Construct a null newed MGAttrib from the type id TID.

void reset_Amask ( unsigned int &  mask,
MGGLAttrib::ATTRIB_MASK  bit 
)
void set_Amask ( unsigned int &  mask,
MGGLAttrib::ATTRIB_MASK  bit 
)

Set or reset the bit of mask.