2010/01/26 C-00.引言
2010/08/28 C-01.Hello, world!!
2010/12/16 C-02.二進位
2011/08/01 其他-OpenGL在visual studio 2010底下的配置

Posted by takeabreak at 痞客邦 PIXNET 留言(0) 引用(0) 人氣()

Posted by takeabreak at 痞客邦 PIXNET 留言(0) 引用(0) 人氣()

肯德基今年限量推出聖誕節限定餐點,現食專送直達派對現場!


餐點除了有最受歡迎的
咔啦脆雞及薄皮嫩雞之外,還有派對大餐中最應景的美式BBQ豬肋排、德式帶骨香腸紐奧良手扒雞,還可搭配焗烤肉醬筆尖麵、紐約乳酪蛋!
馬上CALL:4128-000,不費吹灰之力就可以享受超完美聖誕大餐!

現在上肯德基官網就可以看菜單預購去! http://www.kfcclub.com.tw
只要在2011/12/22前,預約訂購 2011/12/23~12/31外送餐點就可享有
滿千送百優惠喔!

Posted by takeabreak at 痞客邦 PIXNET 留言(0) 引用(0) 人氣()

glClear: clear buffers to preset values.

 

C Specification | Parameters | Description | Notes | Errors | Associated Gets | See Also

[Up] C Specification

void glClear(
    GLbitfield   mask)

[Up] Parameters

mask
Bitwise OR of masks that indicate the buffers to be cleared. The four masks are GL_COLOR_BUFFER_BIT, GL_DEPTH_BUFFER_BIT, GL_ACCUM_BUFFER_BIT, and GL_STENCIL_BUFFER_BIT.

[Up] Description

glClear sets the bitplane area of the window to values previously selected by glClearColor, glClearIndex, glClearDepth, glClearStencil, and glClearAccum. Multiple color buffers can be cleared simultaneously by selecting more than one buffer at a time using glDrawBuffer.

The pixel ownership test, the scissor test, dithering, and the buffer writemasks affect the operation of glClear. The scissor box bounds the cleared region. Alpha function, blend function, logical operation, stenciling, texture mapping, and depth-buffering are ignored by glClear.

glClear takes a single argument that is the bitwise or of several values indicating which buffer is to be cleared.

The values are as follows:

GL_COLOR_BUFFER_BIT
Indicates the buffers currently enabled for color writing.
GL_DEPTH_BUFFER_BIT
Indicates the depth buffer.
GL_ACCUM_BUFFER_BIT
Indicates the accumulation buffer.
GL_STENCIL_BUFFER_BIT
Indicates the stencil buffer.

The value to which each buffer is cleared depends on the setting of the clear value for that buffer.

[Up] Notes

If a buffer is not present, then a glClear directed at that buffer has no effect.

[Up] Errors

  • GL_INVALID_VALUE is generated if any bit other than the four defined bits is set in mask.
  • GL_INVALID_OPERATION is generated if glClear is executed between the execution of glBegin and the corresponding execution of glEnd.

 

Posted by takeabreak at 痞客邦 PIXNET 留言(0) 引用(0) 人氣()

[Next]

glClearColor: specify clear values for the color buffers.

 

C Specification | Parameters | Description | Errors | Associated Gets | See Also

[Up] C Specification

void glClearColor(
    GLclampf     red,
    GLclampf     green,
    GLclampf     blue,
    GLclampf     alpha)

[Up] Parameters

red, green, blue, alpha
Specify the red, green, blue, and alpha values used when the color buffers are cleared. The initial values are all 0.

[Up] Description

glClearColor specifies the red, green, blue, and alpha values used by glClear to clear the color buffers. Values specified by glClearColor are clamped to the range [0, 1].

[Up] Errors

  • GL_INVALID_OPERATION is generated if glClearColor is executed between the execution of glBegin and the corresponding execution of glEnd.

 

Posted by takeabreak at 痞客邦 PIXNET 留言(0) 引用(0) 人氣()

剛試了好久,現在整理出一些些心得首先你需要三個檔案:
glut.h
glut32.lib
glut32.dll

Posted by takeabreak at 痞客邦 PIXNET 留言(0) 引用(0) 人氣()

還是避免不了要講這塊啊......我就大致提一下就好了

Posted by takeabreak at 痞客邦 PIXNET 留言(0) 引用(0) 人氣()

  一般程式基本都要秀出訊息給使用者看,也因此,許多程式語言的第一堂課就是秀出一段訊息,「Hello, world!!」

Posted by takeabreak at 痞客邦 PIXNET 留言(0) 引用(0) 人氣()

這篇引言,其實滿不重要的。有基底的人就從下一篇開始看起吧!

Posted by takeabreak at 痞客邦 PIXNET 留言(0) 引用(0) 人氣()

把之前的東西都刪掉了

想重新開始這裡的網誌

恩......就先這樣吧

最近要先準備期末考

之後去帶營隊

所以下次更新

應該已經2月多了

Posted by takeabreak at 痞客邦 PIXNET 留言(0) 引用(0) 人氣()