Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7750889
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T11:24:27+00:00 2026-06-01T11:24:27+00:00

I set up the stencil buffer so only parts of the screen are affected

  • 0

I set up the stencil buffer so only parts of the screen are affected by draw calls. Specifically, I want to draw into a small area. It will become an UI, so everything drawn will be some kind of 2D sprite. Using the sprite object works very well. Sprites that are outside of the area are cut off.
However, when I add text, everything drawn afterwards and the text itself is not cut off. PIX shows that a new DepthStencilState is set with the stencil buffer turned off as soon as draw text is called. The text is drawn by the same sprite object which is responsible for drawing other sprites.

The drawing is performed through the SlimDX.Direct3D10.Font.Draw method.

Is there a way to force DirectX not to change the state object? I use SlimDX, but according to its code it does not seem to be responsible for the state change.

Nico

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T11:24:29+00:00Added an answer on June 1, 2026 at 11:24 am

    If you’re switching to D3D11, you might be interested in a font rendering library I’ve been working on porting to SlimDX (along with some other bits from the DirectX toolkit libraries that have been released over the past few months).

    It’s still in development, so no guarantees about anything, but you can find it here (SVN): http://code.google.com/p/slimdx/source/browse/#svn%2Fbranches%2Flite%2FSlimDX.Toolkit

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to set up multiple stencils in OpenGL and then draw into multiple
Set rs = conn.Execute(Statement) //rs has 6 fields I want to add the current
set dateformat dmy select isdate('31/1/2012') I thought by going into Change the format of
With the stencil buffer in opengl-es for Android, I'm simply trying to mask out
I have a complex stencil with many small shapes (sheet.6 to 43), grouped in
SET a 100 EXPIRE a 86400 OK, right now, a will expire within a
I have a set of points and each one has an area of influence
SET NOCOUNT ON DECLARE @Products TABLE (product_id VarChar(50),product_name VarChar(50) ) INSERT INTO @Products Values
SET Project_List_val=CONCAT(Project_Number_val,'_List'); Insert Into test (Manthan_Panel_Id) select Manthan_Panel_Id from Project_List_val where Project_Number_val='9'; In the
set(TestProject_additional_libs optimized foobar.lib debug foobard.lib } especially what is optimized/debug mean here? Is this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.