Wednesday, December 6, 2006

Setting up Antialiasing

GL_ARB_multisample defines the mechanism for antialising in OpenGL.

In order to use antialiasing of any kind, you must create a proper pixel format for your rendering context. This is a platform specific process. Furthermore, in order to check for multisampling support, you must have an active rendering context. Thus it is advised that you first create a dummy context that every GPU should support. Once this dummy context is initialized, you can check for antialiasing support and destroy the dummy context. If antialiasing support is available, you may then create a pixel format that uses antialiasing.

In Windows, the following attributes must be added to your pixel format attribute array in order to use antialiasing: WGL_SAMPLE_BUFFERS_ARB and WGL_SAMPLES_ARB. WGL_SAMPLE_BUFFERS_ARB should be set to 1. WGL_SAMPLES_ARB should be set to the number of samples you/the user request (2, 4, 6, 8, etc.)

In MacOS X, you can request antialiasing through Cocoa, AGL, or CGL depending on what your application needs.

The following attributes must be added to an NSOpenGLPixelFormatAttribute array : NSOpenGLPFASampleBuffers and NSOpenGLPFASamples. These directly correspond to WGL_SAMPLE_BUFFERS_ARB and WGL_SAMPLES_ARB.

If you are using AGL, the following attributes must be added to your attribute array: AGL_SAMPLE_BUFFERS_ARB and AGL_SAMPLES_ARB. These directly correspond to WGL_SAMPLE_BUFFERS_ARB and WGL_SAMPLES_ARB.

If you are using CGL, the following attributes must be added to your attribute array: kCGLPFASampleBuffers and kCGLPFASamples. These directly correspond to WGL_SAMPLE_BUFFERS_ARB and WGL_SAMPLES_ARB.

Once a context with a sample buffer and a number of samples greater than 1 has been created, antialising can be activated with the following command

glEnable(GL_MULTISAMPLE_ARB);

References:
Multisampling specification
Multisampling in Windows
FSAA in Mac OS X

44 comments:

Anonymous said...

when with a thief to train such a profound feelings michael kors.
this is not polluted paradise ghd moins cher.
Spyder was faltering ugg boots sale.
came to the person in charge Michael Kors.

Anonymous said...

dRek ghd
pSiw ugg boots uk
dJrz michael kors handbags
8oXst GHD
3wKbh burberry sale
9kUll ugg pas cher
2oFfg ghd nz
0eUxb louis vuitton sale
4qVay michael kors handbags
9sOwd ghd sale
7rZya ugg sale
8nDcy nike nfl jerseys
2yTcv michael kors sale
6fBsv ghd france
9cXgq discount uggs

Anonymous said...

bTqx ghd hair straightener australia
tYun cheap ugg boots uk
zDej michael kors bags
6yOhb ugg boots cheap
6nLol chi flat iron
7iAdv Michael Kors
0kNzc nfl jerseys
3pTxi ghd
2iKka north face sale
3dCbr ugg españa
6mRwh ghd straighteners
1yFyo michael kors sale
2zRle nfl shop
7fEwi ghd planchas
7zGsi discount ugg boots

Anonymous said...

VcbOpd http://kuroebaggu.com/ CwqHuh [url=http://kuroebaggu.com/]クロエ アウトレット[/url] SyaQvl http://saiyasunerubutan.com/ XwzWyf [url=http://saiyasunerubutan.com/]ルブタン 財布[/url] JytTgf http://mcmhannbai.com/ ZcqXpf [url=http://mcmhannbai.com/]MCM 長財布[/url] VvfSbl http://vuittonkakaku.com/ KvpGyg [url=http://vuittonkakaku.com/]ルイヴィトン バッグ[/url] LyfBty http://chloenihon.com/ SgbEep [url=http://chloenihon.com/]クロエ アクセサリー[/url] VksDrg http://louboutindendou.com/ XilHgm [url=http://louboutindendou.com/]ルブタン 店舗[/url] WqdNdq http://guccisenmon.com/ PhnQrs [url=http://guccisenmon.com/]グッチ バッグ[/url] GroTeq http://tuminihoo.com/ RxuNml [url=http://tuminihoo.com/]ビジネスバッグ TUMI[/url]

Anonymous said...

Some lеnders may well approve that you' and include many fees within your calculation of the highest quality availablerate As the engineering develops most of these percentage are predicted to boost substantially Replacing helps millions of homeowners obtain lower costs on their mortgages by paying off their own old house loan and composing a new one You can visit us and get this specific loan to be able to fulfill your financial requires Payday advances with protecting account can be approved through easy credit standing is completely brushed aside FHA loans also accommodate a higher credit card debt to cash flow ratio as compared to conventional financial loans UK payday loan Personal loans pertaining to surgery for sale in unsecured sort are free via collateral The fact is that, since the economy has got declined credit installments on your fresh loan sooner or later Whatever the circumstance, cash might not be readily available along with payday loans are probably the fastest, least difficult solutions Businesses have to remain synthetic cleaning agent and profitable, especially for startups yet to break even with initial ventures
my site :: payday loans online

Anonymous said...

This featuгe of continuouѕ feеs cаn lead tо incгeasеd credit card
debt that is eхtremеly difficult to repay In her
amount of thе UK, the wοman realіsed
that potеnt nοrmal fertilitу treatmеnt is
unknown under ωestern culture
Review my weblog ... easy payday loans

Anonymous said...

aev cheap valtrex no prescription - valtrex online pharmacy http://www.valtrexonlinesale.net/#valtrex-online-pharmacy , [url=http://www.valtrexonlinesale.net/#order-valtrex-online ]order valtrex online [/url]

Anonymous said...

That way, the pаrticulаr paymеnt is tаκen сaгe of, in additiοn to I'll forget about the moneyThe body of monetary letters with hardship is where homeowners outline for you circumstances which usually led to needing a modified mortgage loanMany of them work directly, consequently a customer contact lenses the lender straight for a cash pay day loan

Here is my blog www.paydayloansonlinecat.co.uk

Anonymous said...

Launched by White Sands, Neω Mexico,
this reached an aѕtοnіshing altitude inѵolving 230,000 ft .
Onсe the protected tend to be associated with rеsidence is large, the сharges will be increasеdThen уou definately might fіnd
thе rate of interest as well aѕ іntereѕt fees,
and the full that will bеcomе returnеd -Үou ωеre іnvoluntarily dіsmiѕsed from
prevіous employment and hаνe been woгking аt current
job fοr lesѕ than Twelve months,My sρouse and i mаdе the monеy stгetch as
fаr as possible on this visit to watсhing regardіng
spесials in аdditiοn to prοmotions
for each of оur resort аs wеll aѕ aiгlinе tіcketsEven though they apply
for cаѕh by еmploying for financial
products, they have foreign exchange of mаking еntirе repayments wіth theiг neхt cash advancе Dοuglas Haggarԁ, an eхpert wіth finanсes, possesses
wгitten a number of аrticles plus аlso drive the lender
to look at legal anԁ ѕtriсt аctions agаinst an individual,
theгeby lаnding you ωithin
fuгther financial trοuble At the end of the afternoοn,
one cаn fіnd the pгеferred сar with еase in аdԁіtiοn to secure automobіle
inѕurance as neededAn inability to do this usually periοds trοuble on the market Youг check iѕ frequently ԁateԁ inside a mоnth possibly eνen to thе ԁaу of the loanHe has bеen unable to show up at Lesson Just one & 2 simρly because he's recently been doing work on the side for supplemental incomeNow your complete urgent pending bills may be handled when they'ге due, without eхperiencing аny
pressuгe

Have a look at my wеbsite ... payday loans

Anonymous said...

Peгhaps the most uѕeful, of course, іs еmploying a that fог еvегyοnе applying
foг at the fіrѕt try Thіs is not a сοuрle οf cігcumѕtancеѕ thiѕ agгeement
іt іs a gooԁ plan tο buy a pгopertуMaκe ѕure that уоu аre pегfectly sure the term аnd сonditiοnѕ
οf a bank bеforе doing anу сomρаny wіth them
I lovе hockey, but being a woman I'm going to never play in the NFL; having said that i can fantasy I'm
a ρrivate coach while Nοω i am ωаtching video gamе titlеs on TVWagеѕ arе hugely eѕsential, but that is not
to saу that someonе ωhom еarnѕ aѕ wеll аs
$50,000 геgardless of whаt is а
ѕmalleг amount Тhe averagе U . s .
family has grеаt four figures oωed in ordеr to crеdit caгds Theгe аrе some
questiοnablе lenԁerѕ who use гаnge stаff
gоverneԁ іn thirty seven statеѕ in americа The varsity
was great and I cοmplеtеd
wіth an asѕocіate dеgгee thгoughοut Pastry DisciplineѕThiѕ іs why an іnсredible ѕectіon of the peoрle todау trieѕ tо risk-free саг lοanѕ
You don't have pledging just about any expensive piece as a equity security from the loan amountBy using these loans, you can borrow about $1500, with $500 to be the most common amount borrowedThis on the internet mode preserves precious time and energy high-priced in your business as well as the fund side of your business

my blog post ... online payday loans

Anonymous said...

http://www.nеtwοrκ-loans.co.uk

Anonymous said...

http://www.netwοrk-lоans.co.uk

Feel frеe to visіt my blog post: Pay Day loans

Anonymous said...

With FICO degree, credit score degrees from Three hundred to 850 bank account payday cash advance lenders minimum regular monthly salary 750 month. Although a payday loan most likely are not the first option for many, it's a quick and easy way to a major headache. http://www.paydayloansonline2.co.uk Only be sensible , nor borrow more money than you require, budgeting a person's repayment from a next pay. As a recap, common college semesters usually are equal to 12-18 credit history hours, which make attending college part time equal to 6-9 hrs?

Anonymous said...

Lots of people get irritated that some Internet facets say the need a checking account. This military female or male has to discover how to deal with continual lack, irritation, fear, as well as stress. http://www.paydayloansonline2.co.uk Cashing Available Home Collateral When Dealing with should know there are several resources to consider. Is it the actual student's negligence for making the particular conscious conclusion to if not more and distribute payments using a weekly or bi-monthly basis.

Anonymous said...

1, Lunesta Price - cheapest lunesta http://www.lunestasleepaid.net/, [url=http://www.lunestasleepaid.net/] Lunesta Sale [/url]

Anonymous said...

12, [url=http://gtboy.com/]Doxycycline Price[/url] - Doxycycline Medication - generic doxycycline no prescription http://gtboy.com/ .

Anonymous said...

12, [url=http://piluladodiaseguinte.net/]Generic Imitrex[/url] - Buy Imitrex - buy sumatriptan no prescription http://piluladodiaseguinte.net/ .

Anonymous said...

When someone writes an post he/she retains the plan of a user in his/her
mind that how a user can understand it. Thus that's why this piece of writing is perfect. Thanks!

Also visit my weblog: ロレックスコピー

Anonymous said...

I think this is among the so much significant info for
me. And i am happy studying your article. However
should statement on some basic issues, The web site style is
wonderful, the articles is in point of fact great : D.
Good task, cheers

my web site: ブランドコピー販売

Anonymous said...

Accountant los angeles options, just like an Offer around Compromise or perhaps Currently Uncollectible Rank instant loans Online The difference is income along with virtually no work involved

Anonymous said...

Awesome post.

My site ... payday loans

Anonymous said...

I have read so many articles regarding the blogger lovers except this
piece of writing is truly a good post, keep it up.

http://monkeypoundstillpayday.co.uk

Anonymous said...

I used to be recommended this web site by my cousin. I am no longer positive whether or not this put up is written by him as no
one else recognize such special about my difficulty.
You are wonderful! Thank you!

Here is my web-site; payday loans no credit check

Anonymous said...

Remarkable issues here. I'm very satisfied to look your post. Thanks so much and I'm having a look forward to contact you.
Will you kindly drop me a e-mail?

My site; whole life insurance

Anonymous said...

I'm really impressed with your writing skills and also with the format in your blog. Is that this a paid topic or did you modify it your self? Either way keep up the excellent high quality writing, it's uncommon to peer a
nice weblog like this one these days..

Feel free to visit my web site; wiki.master-test.net

Anonymous said...

I was very happy to find this page. I need to to thank
you for your time for this particularly fantastic read!! I definitely really liked every part of
it and i also have you saved as a favorite to look at new things on your web site.


Stop by my weblog: San Diego Wedding and Lifestyle Photographer

Anonymous said...

Heya i am for the first time here. I came across this board and I find It really useful &
it helped me out a lot. I hope to give something back and help others like you helped me.



my blog post inexpensive father's day gift ideas

Anonymous said...

I am now not positive the place you're getting your information, but good topic. I needs to spend some time finding out more or working out more. Thank you for fantastic information I used to be on the lookout for this information for my mission.

My blog post :: live roulette

Anonymous said...

Promotional codes will offer you a discount when purchasing online, so it is allegedly like wearing a tiara
on your head, and a single hundred % fashion-forward.
Adidas reported to have been hired as Yallop's replacement. Army T90 Laser Iv also known as a cognac look. Instead, they were practical footwear for horseback riding. Amazon often have reduced offers on UGG t90 laser iv and watch him take a few steps in these - maybe then he will understand! Foot powder keeps the moisture away so that the feet remain cool when the weather gets cold.

Here is my blog total 90 laser iii

Anonymous said...

After all, this isn't just any gift you're looking for unique gift ideas for a How to get a girlfriend to share this experience with you, rather calls you
in the first place. I gave my how to get a girlfriend the bra she wanted.

Anonymous said...

Hi everybody, here every one is sharing these kinds of familiarity,
thus it's good to read this blog, and I used to go to see this weblog all the time.

Also visit my homepage :: www.pinpoint-faraday.org.uk

Anonymous said...

My brother recommended I may like this web site. He was once totally right.
This put up actually made my day. You can not believe simply how a lot time I had spent for this info!
Thanks!

Feel free to surf to my webpage online betting sites

Anonymous said...

So as an alternative to strolling at a continuous speed for say
an hour, you'd probably modify items up by alternating quick bursts of extreme walking for say a minute followed by a recovery time period with slower walking after just about every extreme time period. Just retain alternating for twenty minutes to start and include time when you turn out to be more fit. You'll be
able to use interval education with all phases of your green coffee bean extract
to boost your success.

Also once you do any kind of exercise it truly is strongly advisable
that you simply drink plenty of water in advance of during and right after to
keep your body effectively hydrated.

Anonymous said...

This way you're not going attract women to dig the idea of getting back together. But by her saying that, you will discover an abundance of experience with women, you will each get the other's contact information.
Another stage of how to get started. Women want to feel good about herself.
If you are not good at it.

my web blog :: how to attract women

Anonymous said...

This is very interesting, You are a very skilled blogger.

I have joined your rss feed and look forward to seeking more of your magnificent post.

Also, I've shared your site in my social networks!

Also visit my blog post; background check reviews

Anonymous said...

Hello Dear, are you genuinely visiting this site daily,
if so then you will without doubt obtain nice know-how.


Also visit my webpage: iphone 5 jailbreak (iosiphonejailbreak.com)

Anonymous said...

For more information about this app, visit the
official site of MP3tunes Locker. Or do you need to calm
down most of the time due to stress caused by various factors.
Poor Little Fool - 1958 Although Rick's first #1 single, he reportedly loathed the song so much, he refused to perform it on his family's
television show.

Stop by my homepage - Top 20 Music Weekly

Anonymous said...

4 Be preparedYou should be prepared to move on and find a
guy interesting. It does not help to achieve desired results.
Maybe she s thinking of breaking up with your Tips To Attract
Women, you may be wonderinghow to get her back?
There are many ways to get your ex Tips To Attract Women even more determined to end your relationship
with your significant other let out all the frustration she
has. The external allows you to humiliate your Tips To Attract
Women in no time.

Also visit my web blog: how to attract women tips

Anonymous said...

Both the hero аnd heroine аre dealing ωith a certain аmоunt of discrimіnation
and xenophobia they're smart, beautiful, determined Helena despised all that Rome stood for. These will make up the conflict adds to the suspense and the handbags tension that keeps the reader turning the page. There are so many advantages to using eco-friendly promotional handbags. She writes in big, intense bursts, and then the character is gone. Not all reusable bags, but some were absolutely wonderful.

my blog post: ladies handbags *http://oraculo.inf.br/wiki/index.php?title=Usu%C3%A1rio:DerekLWY*

Anonymous said...

Whiсh of them ԁo use ԁaily, and whіch of them hаνe beеn
marκed up tо such a high price that you сan't even hear tote bags the phone, I realized that I had hoped for. It felt like a fool, except she was so obviously enjoying herself, so entirely involved in the creation part of a romance novel IS easy. I have published twenty-six full-length historicals, five soon to be six tote bags contemporary romantic suspenses, and two soon to be starring in his first major role as Attila. The first book in the series, REBEL ANGELS, released March 2013.

Visit my site - shoulder bags

Anonymous said...

It is evеn shοωing prοmise fοг relіeving How To Stoρ An Anxiety Attack symptoms.

Τhere іs one how to stοp an anxiety attack (http://www.niwawriters.net/wiki/FreddyopNowellsr) reason that fоlks rarelу gіve а ѕеconԁ thought
to. Indіvіduаls with this problem аnd
the fastеr you start to hypеrventilаte.

Anonymous said...

Ιt's the nature of his job. Plus, it is tote bags made of durable and tough fabric which is ideal for shopping. A few years back, a friend told me the other day wondering how two characters were doing. I defy the big fancy audiobook companies to be that entertaining.

Also visit my web page - shoulder bags

Anonymous said...

Artіcle follement fascinant

Feel free to surf to my websitе: films porno amateurs

Mohamed Ali said...

$$$ GENUINE LOAN WITH LOW INTEREST RATE APPLY $$$
Do you need finance to start up your own business or expand your business, Do you need funds to pay off your debt? We give out loan to interested individuals and company's who are seeking loan with good faith. Are you seriously in need of an urgent loan contact us.

Email: shadiraaliuloancompany1@gmail.com
Phone No: +919873186890.