Tsev > Xov xwm > Ntsiab lus

Pib Sau npe

Apr 26, 2019

image

Cov lus qhia

sfail

Qhia meej txog qhov kev nqis tes ua thaum siv qhov kev xeem stencil, ib qho ntawm KEEP, ZERO,

REPLACE, INCR, DECR, thiab INVERT. Tus nqi pib yog HEEV (1)

spass

Qhia meej txog qhov kev nqis tes ua thaum siv cov ntawv xeem stencil, ib qho ntawm tib yam

constants li sfail. Tus nqi pib yog HEEV (1)

image

Daim duab 12: STENCIL_OP sab hnub poob txhais

Kev piav qhia

Lub stencil khiav hauj lwm qhia meej li cas lub stencil tsis hloov tshiab. Lub lag luam

xaiv yog nyob ntawm seb qhov kev xeem stencil kis tau los sis tsis ua.

Piv txwv

Kos ob lub ntsiab lus, incrementing stencil ntawm txhua lub pixel, ces kos lub pixels nrog tus nqi

2 nyob rau hauv liab:

image

Cov ntsiab lus graphics

Qhov tseem ceeb ntawm sfail thiab spass yog ib feem ntawm cov ntsiab lus teb, xws li tau piav qhia hauv

Tshooj 4.1

Saib kuj

STENCIL_FUNC, STENCIL_MASK

image

Cov lus qhia

s

Tag nqi. Valid tus nqi yog siv los ntawm 1 mus rau 255.

Kev piav qhia

Tus nqi pib ntawm daim pib ntawm FT800 yog teev los ntawm CLEAR_TAG

thiab siv tau los ntawm CLEAR hais kom ua. TAG hais kom ua tau qhia meej txog tus nqi ntawm daim pib

tsis ntawm FT800 uas siv rau cov khoom kos thaum lawv kos rau ntawm

screen. Tus nqi TAG no yuav raug xa mus rau tag nrho cov hauv qab no, tshwj tsis yog

TAG_MASK hais kom ua siv los lov tes taw nws. Thaum cov khoom kos duab nram qab no yog

kos, lawv tau txuas nrog cov nqi tag los ua tiav. Thaum cov duab khoom

txuas nrog tag nrho tus nqi tag, raug rau npe REG_TOUCH_TAG yuav raug kho tshiab

nrog rau cov nqi ntawm qhov khoom kwv tau kov.

Yog tias tsis muaj TAG cov lus txib hauv ib daim ntawv sau, tag nrho cov khoom siv duab los ntawm

daim ntawv sau qhia yuav qhia txog tus nqi qis ua 255 hauv REG_TOUCH_TAG thaum lawv

kov.

Cov ntsiab lus graphics

Tus nqi ntawm s yog ib feem ntawm cov ntsiab lus duab, raws li tau hais tseg hauv seem 4.1

Saib kuj

CLEAR_TAG, TAG_MASK


image

Cov lus qhia

daim npog qhov ncauj

Cia pub rau cov neeg tsis paub. Tus nqi pib yog ib qho thiab nws txhais tau tias yog daim ntawv

tsis ntawm FT800 yog muab kho nrog tus nqi muab los ntawm TAG hais kom ua.

Vim li no, cov khoom siv nram qab no yuav muab txuas rau qhov nqi

muab los ntawm TAG hais kom ua.

Tus nqi xoom txhais tau tias tus lossis tsis ntawm FT800 yog teem caij ua tus nqi pheej hmoo,

ntau dua li tus nqi uas siv los ntawm TAG cov lus txib hauv daim ntawv sau.

Kev piav qhia

Txhua yam khoom siv kos duab tso tawm ntawm lub vijtsam yog txuas nrog cov nqi tagnrho uas yog

sau tseg hauv cov FT800 lossis tsis yeem. Cov FT800 tag buffer tau tshiab los ntawm TAG

hais kom ua.

Cov nqi pheej yig ntawm qhov FT800 tag buffer yog txiav txim los ntawm CLEAR_TAG thiab

CLEAR lus txib. Yog tias tsis muaj CLEAR_TAG cov lus txib tam sim no hauv cov lus

daim ntawv teev npe, tus nqi pheej yig nyob hauv daim pib tsis tag yuav tsum yog 0.

TAG_MASK cov lus txib txiav txim siab seb tus FT800 tag buffer yuav siv cov nqi

los ntawm cov nqi pheej yig ntawm FT800 lossis tsis los yog TAG hais kom ua ntawm

daim ntawv sau.

Cov ntsiab lus graphics

Tus nqi ntawm lub npog ncauj yog ib feem ntawm cov ntsiab lus duab, raws li tau hais tseg hauv seem 4.1

Saib kuj

TAG, CLEAR_TAG, STENCIL_MASK, COLOR_MASK


image

Cov lus qhia

x

Xee npe x-coordinate hauv 1/16 pixel precision

y

Kos npe y-coordinate hauv 1/16 pixel precision

Kev piav qhia

Qhov khwv ntawm kev tswj yog los ntawm -16384 rau +16383 ntawd saib 1/ 16th pixel units.

Qhov kev pom zoo x qhov nqi txhais tau hais tias lub koomhaum nyob rau sab laug ntawm lub vijtsam laug ntawm

(0, 0), thaum txoj kev y txoj kev tsis txaus siab txhais tau hais tias lub koomhaum nyob rau sab qaum

virtual screen los ntawm (0, 0). Yog tias teeb duab ntawm txoj haujlwm tsis zoo, qhov

daim phiaj siv kev lag luam yuav tsis pom.

Cov ntsiab lus graphics

Tsis muaj

Saib kuj

Tsis muaj


image

Cov lus qhia

x

x-coordinate hauv pixels, los ntawm 0 mus rau 511.

y

y-coordinate hauv pixels, txij li 0 txog 511.

kov

Bitmap kov. Qhov siv tau yog los ntawm 0 mus rau 31. Los ntawm 16 mus rau 31, qhov kawg nkaus

kov yog nplooj siab rau lub FT800 built-in font.

cell

Xov tooj ntawm tes. Xovtooj ntawm tes yog qhov Performance index ntawm bitmap nrog tib qhov kev teeb tsa me ntsis thiab

hom ntawv. Piv txwv, rau kev tuav 31, lub xovtooj 65 txhais tau hais tias tus ua cim "A" nyob rau hauv

qhov loj tshaj plaws los ua hauv cov ntawv.

Kev piav qhia

Qhov ntau ntawm coordinates yog los ntawm -16384 rau +16383 ntawd pixel chav tsev. Lub

kov thiab xovtooj ntawm tes tsis muaj qhov tshwj tsis yog cov txheej txheem txheej thaum ub yog teev tseg

bitmap los ntawm hais kom ua BEGIN, ua ntej qhov hais kom ua.

Cov ntsiab lus graphics

Tsis muaj

Saib kuj

Tsis muaj