Ejemplo n.º 1
0
 void UpdateState()
 {
     // If cheats are disabled then show the notification about that.
     // If cheats are enabled and the game is currently running then display that warning.
     State new_state = State::Hidden;
     if (!SConfig::GetInstance().bEnableCheats)
         new_state = State::DisabledCheats;
     else if (Core::IsRunning() && SConfig::GetInstance().GetGameID() == m_game_id)
         new_state = State::GameRunning;
     ApplyState(new_state);
 }
Ejemplo n.º 2
0
  void Render(ref_ptr<dp::GraphicsContext> context, ref_ptr<dp::GpuProgram> program,
              dp::RenderState const & state, ref_ptr<TParamsSetter> paramsSetter,
              TParams const & params)
  {
    Bind(context, program);

    ApplyState(context, program, state);
    paramsSetter->Apply(context, program, params);

    DrawPrimitives(context);

    Unbind(program);
  };
void InputLayoutManager::ClearState( )
{
	ApplyState(VertexFormat::eVERTEX_MAX);
}