text in the current font. The GetTabbedTextExtent function computes the width and height of a character stri... y of tab-stop positions. The GetTextExtentPoint32 function computes the width and height of a line of text.
... be sheared to the right. The amount of shear is a function of the height of the character.
One way to write... multiple fonts is to use the GetTextExtentPoint32 function after each call to TextOut and add the length to
------------------------------------------
-- 함수
function add1(a,b)
return a+b;
end
-- 함수 : local, global 있다
local function add2(a,b)
return a+b
end
-- 함수 : 변수에 할당 가능
local fn_add3 = function(a, b)
return a^b
end
print(fn_add3(10, 2))
-- 함수... 를 실행하면 fn1()만 무한 실행된다.
--[[
local _b = true
local function fn1()
while _b do
print("OK")
end
print("END
?php
class News_model extends CI_Model {
public function __construct() {
$this->load->database();
}
... ]]에 동작하도록 되어 있다. 아래의 코드를 추가한다.
<code php>
public function get_news( $slug = FALSE )
{
if( $slug == FALSE ... <?php
class News extends CI_Controller {
public function __construct() {
paret::__construct();
$th... ('news_model');
} // 컨트롤러가 모델을 사용하는구나.
public function index() {
$data['news'] = $this->news_model->
---------------
# 바탕화면에 아이콘을 만들거나 인터넷 바로가기를 만들거나
Function makeShortcutOrInternetshortcut
# 프로그램 그룹 만들기
... ----------------------------
; Uninstall section
Function un.onUninstSuccess
HideWindow
MessageBox MB_ICO... NFORMATION|MB_OK "$(^Name)は削除されました。"
FunctionEnd
Function un.onInit
FunctionEnd
Section Uninstall
!insert... 하도록 =====
<code nsis>
#뒤의 세문자를 읽어서, 다음 동작을 결정한다.
Function MakeShortcutOrInternetshortcut
# $0 : 저장할 임시 변수
ct's position(move it along the predefined angle)
function GameLoop()
{
movingObject.x = movingObject.x + ... ct's position(move it along the predefined angle)
function GameLoop()
{
// continously add acceleration to... ach frame call game loop to set object's position
function GameLoop()
{
if( moving == true ) {
velocit... = time * gravity * 0.5f
코드 예제
<code javascript>
function GameLoop()
{
if( thrown == true && moving == fa